Skip to content

Commit 2eb8515

Browse files
sw10pabkchr
andauthored
Update polkadot/node/subsystem-util/src/availability_chunks.rs
Co-authored-by: Bastian Köcher <[email protected]>
1 parent fdc4659 commit 2eb8515

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

polkadot/node/subsystem-util/src/availability_chunks.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ pub fn availability_chunk_indices(
5151
core_index: CoreIndex,
5252
) -> Result<Vec<ChunkIndex>, polkadot_erasure_coding::Error> {
5353
let identity = (0..n_validators).map(|index| ChunkIndex(index as u32));
54-
if let Some(&true) = node_features
54+
if node_features
5555
.get(usize::from(node_features::FeatureIndex::AvailabilityChunkMapping as u8))
56-
.as_deref()
56+
.unwrap_or_default()
5757
{
5858
let systematic_threshold = systematic_recovery_threshold(n_validators)? as u32;
5959
let core_start_pos = core_index.0 * systematic_threshold;

0 commit comments

Comments
 (0)