Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(data_structures): fix epoch period for wit/2 #2533

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading