Modules§
- import_
queue - (unstable) Composable utilities for constructing import queues for parachains.
Structs§
- Parachain
Block Import - Parachain specific block import.
- Parachain
Candidate - The result from building a collation.
- Parent
Search Result - A potential parent block returned from
find_parent_for_building
Enums§
- Level
Limit - Upper bound to the number of leaves allowed for each level of the blockchain.
- Parent
Search Params
Constants§
- MAX_
LEAVES_ PER_ LEVEL_ SENSIBLE_ DEFAULT - Value good enough to be used with parachains using the current backend implementation that ships with Substrate. This value may change in the future.
Traits§
- Parachain
Block Import Marker - Marker trait denoting a block import type that fits the parachain requirements.
- Validation
Code Hash Provider - Provides the hash of validation code used for authoring/execution of blocks at a given hash.
Functions§
- fetch_
included_ from_ relay_ chain - Fetch the included block from the relay chain.
- finalized_
heads - Returns a stream that will yield finalized heads for the given
para_id. - find_
parent_ for_ building - Find the best parent block to build on.
- get_
relay_ slot - Get the relay slot from a header.
- get_
relay_ slot_ and_ timestamp - Get the relay slot and timestamp from a header.
- load_
abridged_ host_ configuration - Reads abridged host configuration from the relay chain storage at the given relay parent.
- old_
finalized_ hash - Resolve the previously-finalized block hash: the parent of the first block in
tree_route, orfallback_parent(the just-finalized header’s parent) when the route is empty or that header can’t be loaded. - spawn_
parachain_ consensus_ tasks - Spawns the essential finalization tasks for parachain consensus.