We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2eb8515 commit 0934912Copy full SHA for 0934912
polkadot/node/subsystem-util/src/availability_chunks.rs
@@ -27,9 +27,9 @@ pub fn availability_chunk_index(
27
core_index: CoreIndex,
28
validator_index: ValidatorIndex,
29
) -> Result<ChunkIndex, polkadot_erasure_coding::Error> {
30
- if let Some(&true) = node_features
+ if node_features
31
.get(usize::from(node_features::FeatureIndex::AvailabilityChunkMapping as u8))
32
- .as_deref()
+ .unwrap_or_default()
33
{
34
let systematic_threshold = systematic_recovery_threshold(n_validators)? as u32;
35
let core_start_pos = core_index.0 * systematic_threshold;
0 commit comments