Runtime
Types used within the runtime exclusively and pervasively.
Host Configuration
The internal-to-runtime configuration of the parachain host is kept in struct HostConfiguration
. This is expected to
be altered only by governance procedures or via migrations from the Polkadot-SDK codebase. The latest definition of
HostConfiguration
can be found in the project repo
here. Each
parameter has got a doc comment so for any details please refer to the code.
Some related parameters in HostConfiguration
are grouped together so that they can be managed easily. These are:
async_backing_params
instruct AsyncBackingParams
executor_params
instruct ExecutorParams
approval_voting_params
instruct ApprovalVotingParams
scheduler_params
instruct SchedulerParams
Check the definitions of these structs for further details.
Configuration migrations
Modifying HostConfiguration
requires a storage migration. These migrations are located in the
migrations
subfolder of Polkadot-SDK repo.
ParaInherentData
Inherent data passed to a runtime entry-point for the advancement of parachain consensus.
This contains 4 pieces of data:
#![allow(unused)] fn main() { struct ParaInherentData { bitfields: Bitfields, backed_candidates: BackedCandidates, dispute_statements: MultiDisputeStatementSet, parent_header: Header } }