ChainSafe / ChainSafe/gossamer

Utilize block import notifications for updated runtime notifications with RPC integration.

Open
#4,470 0 comments 0 reactions 0 assignees View on GitHub
P-low
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.