Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Disable compression for RLP strings #5786

Merged
merged 1 commit into from
Jun 8, 2017
Merged

Disable compression for RLP strings #5786

merged 1 commit into from
Jun 8, 2017

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Jun 7, 2017

Fixes #5779

@arkpar arkpar added A0-pleasereview 🤓 Pull request needs code review. B0-patch M4-core ⛓ Core client code / Rust. labels Jun 7, 2017
// Iterate through RLP while checking if it has been compressed.
_ => map_rlp(rlp, |r| deep_decompress(r, swapper)),
}
map_rlp(rlp, |r| deep_decompress(r, swapper))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure there are no other rlps that will now fail to decompress because deep_decompress has changed?
Or will the DB resync be mandatory for everyone?

@keorn
Copy link

keorn commented Jun 7, 2017

better just change this to simple_compress

@tomusdrw
Copy link
Collaborator

tomusdrw commented Jun 7, 2017

lgtm

@splix
Copy link
Contributor

splix commented Jun 8, 2017

What version of Parity is safe to use now? It seems that 1.4.x and 1.5.x are prone to this bug. What about 1.3.x and 1.6.x?

@arkpar
Copy link
Collaborator Author

arkpar commented Jun 8, 2017

1.6.8 Contains the fix. A re-sync is required though. Versions 1.3.0-1.6.7 are affected.

@arkpar arkpar merged commit 9418fca into master Jun 8, 2017
@arkpar arkpar deleted the rlp-fix branch June 8, 2017 15:24
@splix
Copy link
Contributor

splix commented Jun 8, 2017

@arkpar do I need to resync from the genesis, or it's enough to resync from block 3855567, which is seems to be a first block having this issue?

@splix
Copy link
Contributor

splix commented Jun 8, 2017

Also, are there plans to include this fix into 1.5.x?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants