Skip to content

Commit

Permalink
Fix runtime service getting stuck (#1874)
Browse files Browse the repository at this point in the history
* Fix runtime service getting stuck

* PR link and comment tweak
  • Loading branch information
tomaka authored Jun 17, 2024
1 parent 91f4bc1 commit 464bf01
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions light-base/src/runtime_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -894,9 +894,12 @@ async fn run_background<TPlat: PlatformRef>(
WakeUpReason::Notification,
)
}
} else if any_pending_subscription {
} else if any_subscription || any_pending_subscription {
// Only start subscribing to the sync service if there is any pending
// runtime service subscription.
// or active runtime service subscription.
// Note that subscriptions to the runtime service aren't destroyed when the
// sync service subscriptions is lost but when the sync service is
// resubscribed.
WakeUpReason::MustSubscribe
} else {
future::pending().await
Expand Down
4 changes: 4 additions & 0 deletions wasm-node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Fixed

- Fix runtime service getting stuck if it was subscribed to before the GrandPa warp sync finishes, and that the runtime of the finalized block in the chain specification is available on the peer-to-peer network. ([#1874](https://github.com/smol-dot/smoldot/pull/1874))

## 2.0.28 - 2024-05-30

### Changed
Expand Down

0 comments on commit 464bf01

Please sign in to comment.