Expand description
Cumulus parachain inherent
The ParachainInherentData
is the data that is passed by the collator to the parachain
runtime. The runtime will use this data to execute messages from other parachains/the relay
chain or to read data from the relay chain state. When the parachain is validated by a parachain
validator on the relay chain, this data is checked for correctness. If the data passed by the
collator to the runtime isn’t correct, the parachain candidate is considered invalid.
To create a ParachainInherentData
for a specific relay chain block, there exists the
ParachainInherentDataExt
trait in cumulus-client-parachain-inherent
that helps with this.
Modules§
- v0
- Legacy ParachainInherentData that is kept around for backward compatibility.
Can be removed once we can safely assume that parachain nodes provide the
relay_parent_descendants
andcollator_peer_id
fields.
Structs§
- Hashed
Message - An inbound message whose content was hashed.
- Message
Queue Chain - This struct provides ability to extend a message queue chain (MQC) and compute a new head.
- Parachain
Inherent Data - The inherent data that is passed by the collator to the parachain runtime.
Constants§
- INHERENT_
IDENTIFIER - PARACHAIN_
INHERENT_ IDENTIFIER_ V0 - The identifier for the parachain inherent.