Skip to content

Commit

Permalink
fix(data_structures): fix epoch period for wit/2
Browse files Browse the repository at this point in the history
  • Loading branch information
drcpu-github committed Nov 18, 2024
1 parent c9381b5 commit 98f161c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions data_structures/src/chain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ use crate::{
TransactionError,
},
get_environment, get_protocol_version, get_protocol_version_activation_epoch,
get_protocol_version_period,
proto::{
versioning::{ProtocolInfo, ProtocolVersion, Versioned, VersionedHashable},
ProtobufConvert,
Expand Down Expand Up @@ -288,7 +287,7 @@ impl ConsensusConstantsWit2 {

/// Seconds between the start of an epoch and the start of the next one in wit/2
pub fn get_checkpoints_period_wit2(self) -> u16 {
get_protocol_version_period(ProtocolVersion::V2_0)
20
}

/// Minimum amount of nanoWits which need to be staked before wit/2 activation
Expand Down

0 comments on commit 98f161c

Please sign in to comment.