Skip to content

Commit 0934912

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

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
@@ -27,9 +27,9 @@ pub fn availability_chunk_index(
2727
core_index: CoreIndex,
2828
validator_index: ValidatorIndex,
2929
) -> Result<ChunkIndex, polkadot_erasure_coding::Error> {
30-
if let Some(&true) = node_features
30+
if node_features
3131
.get(usize::from(node_features::FeatureIndex::AvailabilityChunkMapping as u8))
32-
.as_deref()
32+
.unwrap_or_default()
3333
{
3434
let systematic_threshold = systematic_recovery_threshold(n_validators)? as u32;
3535
let core_start_pos = core_index.0 * systematic_threshold;

0 commit comments

Comments
 (0)