Skip to content

Commit

Permalink
Fix chainHead_unstable_stopStorage and `chainHead_unstable_stopBody…
Browse files Browse the repository at this point in the history
…` being mixed (#648)

* Fix `chainHead_unstable_stopStorage` and `chainHead_unstable_stopBody` being mixed

* PR link
  • Loading branch information
tomaka authored Jun 1, 2023
1 parent c0347a4 commit 01b70cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions light-base/src/json_rpc_service/background/chain_head.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ impl<TPlat: PlatformRef> ChainHeadFollowTask<TPlat> {
break;
}
either::Right((
SubscriptionMessage::StopIfChainHeadStorage { stop_request_id },
SubscriptionMessage::StopIfChainHeadBody { stop_request_id },
confirmation_sender,
)) => {
requests_subscriptions
Expand Down Expand Up @@ -1505,7 +1505,7 @@ impl<TPlat: PlatformRef> ChainHeadFollowTask<TPlat> {
break;
}
either::Right((
SubscriptionMessage::StopIfChainHeadBody { stop_request_id },
SubscriptionMessage::StopIfChainHeadStorage { stop_request_id },
confirmation_sender,
)) => {
requests_subscriptions
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 @@
### Fixed

- Fix panic when receiving a networking request of a protocol not supported by smoldot. ([#635](https://github.com/smol-dot/smoldot/pull/635))
- Fix `chainHead_unstable_stopStorage` and `chainHead_unstable_stopBody` being mixed. In other words, storage requests were interrupted by `chainHead_unstable_stopBody` and body requests were interrupted by `chainHead_unstable_stopStorage` ([#648](https://github.com/smol-dot/smoldot/pull/648))

## 1.0.7 - 2023-05-25

Expand Down

0 comments on commit 01b70cb

Please sign in to comment.