Skip to content

Commit

Permalink
chore(config): set testnet parameters for rc.9
Browse files Browse the repository at this point in the history
  • Loading branch information
drcpu-github authored and aesedepece committed Jan 21, 2025
1 parent c7474ea commit 2678aa0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config/src/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,8 @@ impl Defaults for Testnet {
}

fn consensus_constants_checkpoint_zero_timestamp(&self) -> i64 {
// Thursday, 19-Jan-2025, 20:00 UTC
1_737_316_800
// Thursday, 21-Jan-2025, 20:00 UTC
1_737_489_600
}

fn consensus_constants_genesis_hash(&self) -> Hash {
Expand Down
2 changes: 1 addition & 1 deletion data_structures/src/chain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ impl ConsensusConstantsWit2 {
pub fn get_wit2_activation_delay_epochs(self) -> u32 {
match get_environment() {
Environment::Development | Environment::Testnet => {
1_920 // 24 hours
160 // 2 hours
}
_ => {
13_440 // 1 week
Expand Down
4 changes: 2 additions & 2 deletions data_structures/src/chain/tapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{
use serde::{Deserialize, Serialize};
use std::collections::{HashMap, HashSet};

const EIGHTEEN_HOURS: u32 = 1_440;
const FOURTEEN_HOURS: u32 = 1_120;
const TWO_WEEKS: u32 = 26_880;

/// Committee for superblock indices 750-1344
Expand Down Expand Up @@ -243,7 +243,7 @@ impl TapiEngine {
// Hardcoded information about WIPs in vote processing
let wip_0028 = BitVotesCounter {
votes: 0,
period: EIGHTEEN_HOURS,
period: FOURTEEN_HOURS,
wip: "WIP0028".to_string(),
init: 0,
end: u32::MAX,
Expand Down

0 comments on commit 2678aa0

Please sign in to comment.