Skip to content

Commit

Permalink
Fix #762 (#764)
Browse files Browse the repository at this point in the history
* Fix #762

* CHANGELOG
  • Loading branch information
tomaka authored Jun 16, 2023
1 parent 3ef6a8e commit 01f8486
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/executor/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2478,6 +2478,7 @@ impl ExternalStorageClearPrefix {

match host_fn {
HostFunction::ext_storage_clear_prefix_version_1
| HostFunction::ext_default_child_storage_clear_prefix_version_1
| HostFunction::ext_default_child_storage_storage_kill_version_1 => {
HostVm::ReadyToRun(ReadyToRun {
inner: self.inner,
Expand All @@ -2491,6 +2492,7 @@ impl ExternalStorageClearPrefix {
})
}
HostFunction::ext_storage_clear_prefix_version_2
| HostFunction::ext_default_child_storage_clear_prefix_version_2
| HostFunction::ext_default_child_storage_storage_kill_version_3 => {
self.inner.alloc_write_and_return_pointer_size(
host_fn.name(),
Expand Down
1 change: 1 addition & 0 deletions wasm-node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

- Smoldot no longer assumes that the runtime calls `ext_default_child_storage_root` in order to properly update the hashes of the child tries that have been modified. ([#743](https://github.com/smol-dot/smoldot/pull/743))
- Fix various mishandlings of child tries. ([#763](https://github.com/smol-dot/smoldot/pull/763))
- Fix panic when the `ext_default_child_storage_clear_prefix_version_1` and `ext_default_child_storage_clear_prefix_version_2` functions are called. ([#764](https://github.com/smol-dot/smoldot/pull/764))
- Fix wrong trie root hash calculation with `state_version = 1`. ([#711](https://github.com/smol-dot/smoldot/pull/711))
- Fix bug when decoding BABE configuration produced by runtimes using version 1 of the `BabeApi` API. In practice, this should concern only old Kusama blocks. ([#739](https://github.com/smol-dot/smoldot/pull/739))

Expand Down

0 comments on commit 01f8486

Please sign in to comment.