ChainSafe / ChainSafe/gossamer
Utilize block import notifications for updated runtime notifications with RPC integration.
- Dominant language
- Go
- Stars
- 454
- Forks
- 144
- PR merge metrics
- No merged PRs in 30d
Description
## Issue Summary
From the design doc:
> Updating observers for runtime upgrades can be accomplished by listening on BlockImportNotifications. However since this is only accessed via RPC at this moment, we can de-prioritize this work if needed.
## Acceptance Criteria
> Create listener on block import notifications introduced in #4456 to see if a runtime upgrade has been included with the block.
> Integrate with existing RPC methods
## Other Links
- Substrate implementation of [`subscribe_runtime_version` function](https://github.com/paritytech/polkadot-sdk/blob/fc10887d6c96ab5e015df08defa8d40aef301838/substrate/client/rpc/src/state/state_full.rs#L374).
Contributor guide
Assessment
This issue has not been assessed yet.