File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
testnet/stacks-node/src/tests/signer Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -643,6 +643,9 @@ impl LocalStateMachine {
643
643
}
644
644
} ;
645
645
646
+ // No matter what, if we're in tx replay mode, remove the tx replay set
647
+ prior_state_machine. tx_replay_set = None ;
648
+
646
649
let MinerState :: ActiveMiner {
647
650
parent_tenure_id,
648
651
parent_tenure_last_block,
Original file line number Diff line number Diff line change @@ -2901,6 +2901,16 @@ fn tx_replay_forking_test() {
2901
2901
2902
2902
TEST_MINE_STALL.set(false);
2903
2903
2904
+ // Now, make a new stacks block, which should clear the tx replay set
2905
+ signer_test.mine_nakamoto_block(Duration::from_secs(30), true);
2906
+ let (signer_states, _) = signer_test.get_burn_updated_states();
2907
+ for state in signer_states {
2908
+ assert!(
2909
+ state.get_tx_replay_set().is_none(),
2910
+ "Signer state is in tx replay state, when it shouldn't be"
2911
+ );
2912
+ }
2913
+
2904
2914
signer_test.shutdown();
2905
2915
}
2906
2916
You can’t perform that action at this time.
0 commit comments