Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix panic when decoding proof #3043

Merged
merged 4 commits into from
Nov 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bin/wasm-node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Fixed

- Fix panic introduced in v0.7.8 when verifying a Merkle proof of a trie related to a chain whose `state_version` is equal to `1`. ([#3043](https://github.com/paritytech/smoldot/pull/3043))

## 0.7.8 - 2022-11-23

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/trie/proof_decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ where
let _ = unvisited_proof_entries.remove(value_position);
StorageValueInner::Known {
offset: value_entry_range.start,
len: value_entry_range.end,
len: value_entry_range.end - value_entry_range.start,
}
} else {
let offset =
Expand Down