Skip to content

Commit c109144

Browse files
committed
Fix tx_replay_rejected_when_forking_across_reward_cycles
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 38594f9 commit c109144

File tree

1 file changed

+15
-1
lines changed
  • testnet/stacks-node/src/tests/signer

1 file changed

+15
-1
lines changed

testnet/stacks-node/src/tests/signer/v0.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3493,7 +3493,9 @@ fn tx_replay_rejected_when_forking_across_reward_cycle() {
34933493
let commits_count = submitted_commits.load(Ordering::SeqCst);
34943494
next_block_and(btc_controller, 60, || {
34953495
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)
34973499
})
34983500
.unwrap();
34993501
}
@@ -3502,6 +3504,18 @@ fn tx_replay_rejected_when_forking_across_reward_cycle() {
35023504
assert_eq!(0, post_fork_tx_nonce);
35033505

35043506
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");
35053519
let (signer_states, _) = signer_test.get_burn_updated_states();
35063520
for state in signer_states {
35073521
assert!(

0 commit comments

Comments
 (0)