20 major breaking releases
22.0.0 | Apr 4, 2025 |
---|---|
21.0.0 | Jan 29, 2025 |
20.0.0 | Jan 14, 2025 |
18.0.0 | Oct 1, 2024 |
0.0.0 |
|
#159 in #polkadot
5,162 downloads per month
Used in 5 crates
(2 directly)
1MB
17K
SLoC
The collation generation subsystem is the interface between polkadot and the collators.
Protocol
On every ActiveLeavesUpdate
:
- If there is no collation generation config, ignore.
- Otherwise, for each
activated
head in the update:- Determine if the para is scheduled on any core by fetching the
availability_cores
Runtime API. - Use the Runtime API subsystem to fetch the full validation data.
- Invoke the
collator
, and use its outputs to produce aCandidateReceipt
, signed with the configuration'skey
. - Dispatch a
CollatorProtocolMessage::DistributeCollation
(receipt, pov)
.
- Determine if the para is scheduled on any core by fetching the
Dependencies
~95–130MB
~2.5M SLoC