referrerpolicy=no-referrer-when-downgrade
polkadot_node_subsystem_util::availability_chunks

Function availability_chunk_index

Source
pub fn availability_chunk_index(
    node_features: &NodeFeatures,
    n_validators: usize,
    core_index: CoreIndex,
    validator_index: ValidatorIndex,
) -> Result<ChunkIndex, Error>
Expand description

Compute the per-validator availability chunk index. WARNING: THIS FUNCTION IS CRITICAL TO PARACHAIN CONSENSUS. Any modification to the output of the function needs to be coordinated via the runtime. It’s best to use minimal/no external dependencies.