Module polkadot_node_subsystem_util::runtime
source · Expand description
Convenient and efficient runtime info access. Convenient interface to runtime information.
Structs§
- A snapshot of the runtime claim queue at an arbitrary relay chain block.
- Configuration for construction a
RuntimeInfo
. SessionInfo
with additional useful data for validator nodes.- Caching of session info.
- Information about ourselves, in case we are an
Authority
.
Enums§
- Prospective parachains mode of a relay parent. Defined by the Runtime API version.
Functions§
- Convenience function for quickly checking the signature on signed data.
- Checks if the runtime supports
request_claim_queue
and attempts to fetch the claim queue. ReturnsClaimQueueSnapshot
orNone
if claim queue API is not supported by runtime. Any specificRuntimeApiError
is bubbled up to the caller. - Request availability cores from the runtime.
- Get
CandidateEvent
s for the givenrelay_parent
. - Returns disabled validators list if the runtime supports it. Otherwise logs a debug messages and returns an empty vec. Once runtime ver
DISABLED_VALIDATORS_RUNTIME_REQUIREMENT
is released remove this function and replace all usages withrequest_disabled_validators
- Get group rotation info based on the given
relay_parent
. - Variant of
request_availability_cores
that only returns occupied ones. - Get on chain votes.
- Fetch a list of
PendingSlashes
from the runtime. - Fetch
ValidationCode
by hash from the runtime. - Generate validator key ownership proof.
- Requests prospective parachains mode for a given relay parent based on the Runtime API version.
- Receive a response from a runtime request and convert errors.
- Request the min backing votes value. Prior to runtime API version 6, just return a hardcoded constant.
- Request the node features enabled in the runtime. Pass in the session index for caching purposes, as it should only change on session boundaries. Prior to runtime API version 9, just return
None
. - Submit a past-session dispute slashing report.