We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdc4659 commit 2eb8515Copy full SHA for 2eb8515
polkadot/node/subsystem-util/src/availability_chunks.rs
@@ -51,9 +51,9 @@ pub fn availability_chunk_indices(
51
core_index: CoreIndex,
52
) -> Result<Vec<ChunkIndex>, polkadot_erasure_coding::Error> {
53
let identity = (0..n_validators).map(|index| ChunkIndex(index as u32));
54
- if let Some(&true) = node_features
+ if node_features
55
.get(usize::from(node_features::FeatureIndex::AvailabilityChunkMapping as u8))
56
- .as_deref()
+ .unwrap_or_default()
57
{
58
let systematic_threshold = systematic_recovery_threshold(n_validators)? as u32;
59
let core_start_pos = core_index.0 * systematic_threshold;
0 commit comments