Skip to content

Commit e667b82

Browse files
committed
fix: only shut off the epoch2x state machines once the Stacks tip is a Nakamoto tip
1 parent 90b22d0 commit e667b82

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

stackslib/src/net/p2p.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3606,12 +3606,7 @@ impl PeerNetwork {
36063606

36073607
// in Nakamoto epoch, but we might still be doing epoch 2.x things since Nakamoto does
36083608
// not begin on a reward cycle boundary.
3609-
if cur_epoch.epoch_id == StacksEpochId::Epoch30
3610-
&& (self.burnchain_tip.block_height
3611-
<= cur_epoch.start_height
3612-
+ u64::from(self.burnchain.pox_constants.reward_cycle_length)
3613-
|| self.connection_opts.force_nakamoto_epoch_transition)
3614-
{
3609+
if cur_epoch.epoch_id >= StacksEpochId::Epoch30 && !self.stacks_tip.is_nakamoto {
36153610
debug!(
36163611
"{:?}: run Epoch 2.x work loop in Nakamoto epoch",
36173612
self.get_local_peer()

0 commit comments

Comments
 (0)