Skip to content

Commit f4f1c62

Browse files
committed
chore(staking): accepting linear -> exponential replication factor
1 parent ee023de commit f4f1c62

File tree

1 file changed

+1
-1
lines changed
  • data_structures/src/chain

1 file changed

+1
-1
lines changed

data_structures/src/chain/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ impl ConsensusConstantsWit2 {
315315
if get_protocol_version(Some(epoch)) >= ProtocolVersion::V2_0 {
316316
// linearly increasing replication factor
317317
return if epoch >= prev_epoch {
318-
u16::try_from(12 * (epoch - prev_epoch)).unwrap_or(u16::MAX)
318+
4u16.saturating_mul(2u16.saturating_pow(epoch - prev_epoch))
319319
} else {
320320
0
321321
}

0 commit comments

Comments
 (0)