Skip to content

Commit 45383fc

Browse files
authored
Merge pull request #5520 from stacks-network/feat/sip29-testnet-config
Feat/sip29 testnet config
2 parents 9a88bec + dde1d39 commit 45383fc

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

stacks-signer/src/signerdb.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -871,16 +871,6 @@ where
871871
.map_err(DBError::SerializationError)
872872
}
873873

874-
#[cfg(test)]
875-
pub fn test_signer_db(db_path: &str) -> SignerDb {
876-
use std::fs;
877-
878-
if fs::metadata(db_path).is_ok() {
879-
fs::remove_file(db_path).unwrap();
880-
}
881-
SignerDb::new(db_path).expect("Failed to create signer db")
882-
}
883-
884874
#[cfg(test)]
885875
mod tests {
886876
use std::fs;

stackslib/src/chainstate/burn/db/sortdb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3987,7 +3987,7 @@ impl<'a> SortitionDBConn<'a> {
39873987
tip,
39883988
reward_cycle_id,
39893989
)?;
3990-
info!("Fetching preprocessed reward set";
3990+
debug!("Fetching preprocessed reward set";
39913991
"tip_sortition_id" => %tip,
39923992
"reward_cycle_id" => reward_cycle_id,
39933993
"prepare_phase_start_sortition_id" => %first_sortition,

stackslib/src/core/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ lazy_static! {
457457
network_epoch: PEER_VERSION_EPOCH_3_0
458458
},
459459
StacksEpoch {
460-
epoch_id: StacksEpochId::Epoch30,
460+
epoch_id: StacksEpochId::Epoch31,
461461
start_height: 8001,
462462
end_height: STACKS_EPOCH_MAX,
463463
block_limit: BLOCK_LIMIT_MAINNET_21.clone(),

testnet/stacks-node/src/config.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,8 @@ impl Config {
659659
Ok(StacksEpochId::Epoch25)
660660
} else if epoch_name == EPOCH_CONFIG_3_0_0 {
661661
Ok(StacksEpochId::Epoch30)
662+
} else if epoch_name == EPOCH_CONFIG_3_1_0 {
663+
Ok(StacksEpochId::Epoch31)
662664
} else {
663665
Err(format!("Unknown epoch name specified: {epoch_name}"))
664666
}?;
@@ -685,6 +687,7 @@ impl Config {
685687
StacksEpochId::Epoch24,
686688
StacksEpochId::Epoch25,
687689
StacksEpochId::Epoch30,
690+
StacksEpochId::Epoch31,
688691
];
689692
for (expected_epoch, configured_epoch) in expected_list
690693
.iter()
@@ -1291,6 +1294,7 @@ pub const EPOCH_CONFIG_2_3_0: &str = "2.3";
12911294
pub const EPOCH_CONFIG_2_4_0: &str = "2.4";
12921295
pub const EPOCH_CONFIG_2_5_0: &str = "2.5";
12931296
pub const EPOCH_CONFIG_3_0_0: &str = "3.0";
1297+
pub const EPOCH_CONFIG_3_1_0: &str = "3.1";
12941298

12951299
#[derive(Clone, Deserialize, Default, Debug)]
12961300
pub struct AffirmationOverride {

0 commit comments

Comments
 (0)