We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee023de commit f4f1c62Copy full SHA for f4f1c62
data_structures/src/chain/mod.rs
@@ -315,7 +315,7 @@ impl ConsensusConstantsWit2 {
315
if get_protocol_version(Some(epoch)) >= ProtocolVersion::V2_0 {
316
// linearly increasing replication factor
317
return if epoch >= prev_epoch {
318
- u16::try_from(12 * (epoch - prev_epoch)).unwrap_or(u16::MAX)
+ 4u16.saturating_mul(2u16.saturating_pow(epoch - prev_epoch))
319
} else {
320
0
321
}
0 commit comments