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

Fix to_pod storage trie value decoding #10368

Merged
merged 1 commit into from
Feb 22, 2019
Merged

Fix to_pod storage trie value decoding #10368

merged 1 commit into from
Feb 22, 2019

Conversation

sorpaas
Copy link
Collaborator

@sorpaas sorpaas commented Feb 15, 2019

Our current decoding method is not correct, which will make things panic.

@sorpaas sorpaas added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Feb 15, 2019
@sorpaas sorpaas added this to the 2.4 milestone Feb 15, 2019
@5chdn 5chdn added B1-patch-beta 🕷🕷 B0-patch-stable 🕷 Pull request should also be back-ported to the stable branch. labels Feb 15, 2019
@ascjones ascjones added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Feb 18, 2019
@5chdn 5chdn modified the milestones: 2.4, 2.5, 2.6 Feb 21, 2019
Copy link
Contributor

@cheme cheme left a comment

Choose a reason for hiding this comment

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

Thanks for spotting this (I wrote the original line), it is clearly correct to use the rlp decoder and more future proof.
I think it will make thing panic only in case of encoding change (u256 are aligned so encoded as a Vec, maybe there is a corner case I am not thinking about).

@soc1c soc1c merged commit 9ad71b7 into master Feb 22, 2019
@soc1c soc1c deleted the sp-fix-to-pod branch February 22, 2019 13:00
HCastano pushed a commit to HCastano/parity-ethereum that referenced this pull request Feb 25, 2019
HCastano pushed a commit to HCastano/parity-ethereum that referenced this pull request Feb 25, 2019
HCastano added a commit that referenced this pull request Feb 25, 2019
* no-git for publish jobs, empty artifacts dir (#10393)

* no-git for publish jobs, empty artifacts dir

* fix syntax

* prettiness

* fix prettiness

* should get rid of git in publishing

* snap: reenable i386, arm64, armhf architecture publishing (#10386)

* snap: reenable i386, arm64, armhf architecture publishing

* gitlab: fix indent

* gitlab: fix yml syntax

* Linker for crosscomile

* fix target to linker

* new docker image

* fix lint, add build to this PR

* calc SHA3 using rhash

* add new images for i386, armhf

* show snap target & artifacts

* set CARGO_TARGET for publish snap

* move detect Version to publish snap

* rm libc6 dep from snap-template up pub-snap script

* clean up cargo config before add linker

* move linker config to docker images

* tx pool: always accept local transactions (#10375)

* tx pool: always accept local transactions

* tx pool: `choose` local txs with same sender and nonce

* Fix to_pod storage trie value decoding (#10368)
HCastano added a commit that referenced this pull request Feb 25, 2019
* no-git for publish jobs, empty artifacts dir (#10393)

* no-git for publish jobs, empty artifacts dir

* fix syntax

* prettiness

* fix prettiness

* should get rid of git in publishing

* Fix to_pod storage trie value decoding (#10368)

* snap: reenable i386, arm64, armhf architecture publishing (#10386)

* snap: reenable i386, arm64, armhf architecture publishing

* gitlab: fix indent

* gitlab: fix yml syntax

* Linker for crosscomile

* fix target to linker

* new docker image

* fix lint, add build to this PR

* calc SHA3 using rhash

* add new images for i386, armhf

* show snap target & artifacts

* set CARGO_TARGET for publish snap

* move detect Version to publish snap

* rm libc6 dep from snap-template up pub-snap script

* clean up cargo config before add linker

* move linker config to docker images
ordian added a commit that referenced this pull request Apr 5, 2019
* master:
  fix #10390 (#10391)
  Fix to_pod storage trie value decoding (#10368)
  revert some changes, could be buggy (#10399)
  version: bump nightly to 2.5 (#10392)
  no-git for publish jobs, empty artifacts dir (#10393)
  fix(jni): bump to jni to 0.11 & remove unsafe impl (#10394)
  chore(bump ethereum-types) (#10396)
  Update to latest mem-db, hash-db and trie-db. (#10314)
  tx pool: always accept local transactions (#10375)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. B0-patch-stable 🕷 Pull request should also be back-ported to the stable branch. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants