Skip to content

Commit a3d07ac

Browse files
committed
fixed epoch check test
1 parent c6f31b2 commit a3d07ac

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

stackslib/src/core/mod.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,10 +478,17 @@ lazy_static! {
478478
StacksEpoch {
479479
epoch_id: StacksEpochId::Epoch31,
480480
start_height: 8001,
481-
end_height: STACKS_EPOCH_MAX,
481+
end_height: 9001,
482482
block_limit: BLOCK_LIMIT_MAINNET_21.clone(),
483483
network_epoch: PEER_VERSION_EPOCH_3_1
484484
},
485+
StacksEpoch {
486+
epoch_id: StacksEpochId::Epoch32,
487+
start_height: 9001,
488+
end_height: STACKS_EPOCH_MAX,
489+
block_limit: BLOCK_LIMIT_MAINNET_21.clone(),
490+
network_epoch: PEER_VERSION_EPOCH_3_2
491+
},
485492
]);
486493
}
487494

@@ -1910,8 +1917,8 @@ impl StacksEpochExtension for StacksEpoch {
19101917
.iter()
19111918
.max()
19121919
.expect("FATAL: expect at least one epoch");
1913-
if max_epoch.epoch_id == StacksEpochId::Epoch31 {
1914-
assert!(PEER_NETWORK_EPOCH >= u32::from(PEER_VERSION_EPOCH_3_0));
1920+
if max_epoch.epoch_id == StacksEpochId::Epoch32 {
1921+
assert!(PEER_NETWORK_EPOCH >= u32::from(PEER_VERSION_EPOCH_3_1));
19151922
} else {
19161923
assert!(
19171924
max_epoch.network_epoch as u32 <= PEER_NETWORK_EPOCH,

0 commit comments

Comments
 (0)