Skip to content

Commit

Permalink
Fix when_known not notified (#2201)
Browse files Browse the repository at this point in the history
* Fix `when_known` not notified

* PR number

* Update CHANGELOG

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
tomaka and mergify[bot] authored Apr 4, 2022
1 parent 2130817 commit 1baa69b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/light-base/src/runtime_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,10 @@ async fn run_background<TPlat: Platform>(
}
}

if let GuardedInner::FinalizedBlockRuntimeUnknown { when_known, .. } = &lock.tree {
when_known.notify(usize::max_value());
}

lock.tree = GuardedInner::FinalizedBlockRuntimeKnown {
all_blocks_subscriptions: hashbrown::HashMap::with_capacity_and_hasher(
32,
Expand Down
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 regression introduced in version 0.6.11 causing some JSON-RPC functions to never produce a result if they were sent before the runtime of the chain has been downloaded. ([#2201](https://github.com/paritytech/smoldot/pull/2201))

## 0.6.11 - 2022-03-31

### Fixed
Expand Down

0 comments on commit 1baa69b

Please sign in to comment.