Skip to content

Commit 91c9300

Browse files
committed
postpone epoch 3.2 activation
1 parent 885ca9c commit 91c9300

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
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_2 as u32;
87+
pub const PEER_NETWORK_EPOCH: u32 = PEER_VERSION_EPOCH_3_1 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::Epoch32
259+
StacksEpochId::Epoch31
260260
}
261261

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

stackslib/src/core/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ pub const BITCOIN_MAINNET_STACKS_25_BURN_HEIGHT: u64 = 840_360;
104104
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;
107-
/// This is Epoch-3.2, activation height proposed in SIP-031
108-
pub const BITCOIN_MAINNET_STACKS_32_BURN_HEIGHT: u64 = 907_740;
107+
/// 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;
109109

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

testnet/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_2_MARKER;
47+
use stacks::core::STACKS_EPOCH_3_1_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_2_MARKER],
1142+
memo: vec![STACKS_EPOCH_3_1_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"),

testnet/stacks-node/src/tests/nakamoto_integrations.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12689,6 +12689,11 @@ fn test_sip_031_activation() {
1268912689
return;
1269012690
}
1269112691

12692+
// skip the test til we move to epoch 3.2
12693+
if StacksEpochId::latest() != StacksEpochId::Epoch32 {
12694+
return;
12695+
}
12696+
1269212697
let (mut naka_conf, _miner_account) = naka_neon_integration_conf(None);
1269312698
naka_conf.node.pox_sync_sample_secs = 180;
1269412699
naka_conf.burnchain.max_rbf = 10_000_000;

0 commit comments

Comments
 (0)