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

Fix compact proof decoding unaccessed last child trie. #9715

Merged
3 commits merged into from Sep 7, 2021

Conversation

cheme
Copy link
Contributor

@cheme cheme commented Sep 7, 2021

Found this while searching for possible issues for paritytech/cumulus#598.

Not sure if it is the actual issue, but it is one.

The case where other child root is included in proof was incorrectly handled when the last child root included was not accessed.

@bkchr
Copy link
Member

bkchr commented Sep 7, 2021

@cheme could you maybe add some more tests? And then we can merge this.

@cheme
Copy link
Contributor Author

cheme commented Sep 7, 2021

Added a small stress test (ran it with more than 50 but it is rather slow). It is not very relevant, but at least it does run on numerous child trie and values.

@cheme cheme added B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Sep 7, 2021
@bkchr bkchr requested a review from arkpar September 7, 2021 13:36
@cheme
Copy link
Contributor Author

cheme commented Sep 7, 2021

bot merge

@ghost
Copy link

ghost commented Sep 7, 2021

Trying merge.

@ghost ghost merged commit 8b8eb75 into paritytech:master Sep 7, 2021
chevdor pushed a commit that referenced this pull request Sep 8, 2021
* fix no child proof attached but root included.

* small stress test for proof of child tries.

* rust fmt
ordian pushed a commit that referenced this pull request Sep 8, 2021
* fix no child proof attached but root included.

* small stress test for proof of child tries.

* rust fmt

Co-authored-by: cheme <emericchevalier.pro@gmail.com>
chevdor added a commit that referenced this pull request Sep 17, 2021
chevdor added a commit that referenced this pull request Sep 30, 2021
chevdor added a commit that referenced this pull request Oct 4, 2021
chevdor added a commit that referenced this pull request Oct 4, 2021
* chore: refresh of the substrate_builder image

fix #9715

* chore: renaming +  build script

* Fix spaces/tabs

* Add doc

* Remove non binary

* Update docker/substrate_builder.Dockerfile

Co-authored-by: Denis Pisarev <denis.pisarev@parity.io>
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants