mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-15 11:25:42 +00:00
49f7e5cce4
* remove v0 primitives from polkadot-primitives * first pass: remove v0 * fix fallout in erasure-coding * remove v1 primitives, consolidate to v2 * the great import update * update runtime_api_impl_v1 to v2 as well * guide: add `Version` request for runtime API * add version query to runtime API * reintroduce OldV1SessionInfo in a limited way
836 B
836 B
Runtime API
The Runtime API subsystem is responsible for providing a single point of access to runtime state data via a set of pre-determined queries. This prevents shared ownership of a blockchain client resource by providing
Protocol
Input: RuntimeApiMessage
Output: None
Functionality
On receipt of RuntimeApiMessage::Request(relay_parent, request), answer the request using the post-state of the relay_parent provided and provide the response to the side-channel embedded within the request.
Jobs
TODO Don't limit requests based on parent hash, but limit caching. No caching should be done for any requests on
relay_parents that are not active based onActiveLeavesUpdatemessages. Maybe with some leeway for things that have just been stopped.