referrerpolicy=no-referrer-when-downgrade

Module availability_chunks

Source
Expand description

Helpers for the validator->chunk index mapping.

Functions§

availability_chunk_index
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.
availability_chunk_indices
Compute the per-core availability chunk indices. Returns a Vec which maps ValidatorIndex to ChunkIndex for a given availability core 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.