Skip to content

Commit 4747266

Browse files
committed
activate epoch 3.2
1 parent 2cb5750 commit 4747266

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

stacks-common/src/libcommon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub mod consts {
8484

8585
/// this should be updated to the latest network epoch version supported by
8686
/// this node. this will be checked by the `validate_epochs()` method.
87-
pub const PEER_NETWORK_EPOCH: u32 = PEER_VERSION_EPOCH_3_1 as u32;
87+
pub const PEER_NETWORK_EPOCH: u32 = PEER_VERSION_EPOCH_3_2 as u32;
8888

8989
/// set the fourth byte of the peer version
9090
pub const PEER_VERSION_MAINNET: u32 = PEER_VERSION_MAINNET_MAJOR | PEER_NETWORK_EPOCH;

stacks-common/src/types/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ impl CoinbaseInterval {
256256

257257
impl StacksEpochId {
258258
pub fn latest() -> StacksEpochId {
259-
StacksEpochId::Epoch31
259+
StacksEpochId::Epoch32
260260
}
261261

262262
/// In this epoch, how should the mempool perform garbage collection?

stacks-node/src/nakamoto_node/relayer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ use stacks::chainstate::stacks::miner::{
4444
use stacks::chainstate::stacks::Error as ChainstateError;
4545
use stacks::config::BurnchainConfig;
4646
use stacks::core::mempool::MemPoolDB;
47-
use stacks::core::STACKS_EPOCH_3_1_MARKER;
47+
use stacks::core::STACKS_EPOCH_3_2_MARKER;
4848
use stacks::monitoring::increment_stx_blocks_mined_counter;
4949
use stacks::net::db::LocalPeer;
5050
use stacks::net::p2p::NetworkHandle;
@@ -1139,7 +1139,7 @@ impl RelayerThread {
11391139
key_block_ptr: u32::try_from(key.block_height)
11401140
.expect("FATAL: burn block height exceeded u32"),
11411141
key_vtxindex: u16::try_from(key.op_vtxindex).expect("FATAL: vtxindex exceeded u16"),
1142-
memo: vec![STACKS_EPOCH_3_1_MARKER],
1142+
memo: vec![STACKS_EPOCH_3_2_MARKER],
11431143
new_seed: VRFSeed::from_proof(&tip_vrf_proof),
11441144
parent_block_ptr: u32::try_from(commit_parent_block_burn_height)
11451145
.expect("FATAL: burn block height exceeded u32"),

stacks-node/src/tests/nakamoto_integrations.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12643,11 +12643,6 @@ fn test_sip_031_activation() {
1264312643
return;
1264412644
}
1264512645

12646-
// skip the test til we move to epoch 3.2
12647-
if StacksEpochId::latest() != StacksEpochId::Epoch32 {
12648-
return;
12649-
}
12650-
1265112646
let (mut naka_conf, _miner_account) = naka_neon_integration_conf(None);
1265212647
naka_conf.node.pox_sync_sample_secs = 180;
1265312648
naka_conf.burnchain.max_rbf = 10_000_000;

stackslib/src/core/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub const BITCOIN_MAINNET_STACKS_30_BURN_HEIGHT: u64 = 867_867;
105105
/// This is Epoch-3.1, activation height proposed in SIP-029
106106
pub const BITCOIN_MAINNET_STACKS_31_BURN_HEIGHT: u64 = 875_000;
107107
/// This is Epoch-3.2, activation height proposed in SIP-031 (placeholder for now)
108-
pub const BITCOIN_MAINNET_STACKS_32_BURN_HEIGHT: u64 = u64::MAX;
108+
pub const BITCOIN_MAINNET_STACKS_32_BURN_HEIGHT: u64 = /* (TBD) */ u64::MAX;
109109

110110
/// Bitcoin mainline testnet3 activation heights.
111111
/// TODO: No longer used since testnet3 is dead, so remove.

0 commit comments

Comments
 (0)