File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
testnet/stacks-node/src/tests/signer Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -3493,7 +3493,9 @@ fn tx_replay_rejected_when_forking_across_reward_cycle() {
3493
3493
let commits_count = submitted_commits.load(Ordering::SeqCst);
3494
3494
next_block_and(btc_controller, 60, || {
3495
3495
let commits_submitted = submitted_commits.load(Ordering::SeqCst);
3496
- Ok(commits_submitted > commits_count)
3496
+ Ok(commits_submitted > commits_count
3497
+ && get_chain_info(&signer_test.running_nodes.conf).burn_block_height
3498
+ > current_burn_height)
3497
3499
})
3498
3500
.unwrap();
3499
3501
}
@@ -3502,6 +3504,18 @@ fn tx_replay_rejected_when_forking_across_reward_cycle() {
3502
3504
assert_eq!(0, post_fork_tx_nonce);
3503
3505
3504
3506
info!("----- Check Signers Tx Replay state -----");
3507
+
3508
+ let info = get_chain_info(&signer_test.running_nodes.conf);
3509
+ let all_signers = signer_test.signer_test_pks();
3510
+ wait_for_state_machine_update(
3511
+ 30,
3512
+ &info.pox_consensus,
3513
+ info.burn_block_height,
3514
+ None,
3515
+ &all_signers,
3516
+ SUPPORTED_SIGNER_PROTOCOL_VERSION,
3517
+ )
3518
+ .expect("Timed out waiting for signer states to update");
3505
3519
let (signer_states, _) = signer_test.get_burn_updated_states();
3506
3520
for state in signer_states {
3507
3521
assert!(
You can’t perform that action at this time.
0 commit comments