11 major breaking releases
11.0.0 | Apr 10, 2024 |
---|---|
10.0.0 | Mar 19, 2024 |
9.0.0 | Feb 27, 2024 |
8.0.0 | Feb 13, 2024 |
0.0.0 |
|
#49 in Magic Beans
2,982 downloads per month
Used in 10 crates
(2 directly)
68KB
1.5K
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
~71–115MB
~2M SLoC