Skip to content

Commit a338608

Browse files
committed
Make sure commit height for both burn and stacks are strictly greater than
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent e304a48 commit a338608

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stacks-node/src/tests/signer/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,8 +1144,8 @@ impl<Z: SpawnedSignerTrait> SignerTest<Z> {
11441144
// Ensure that the tenure change transaction is mined and that the subsequent block commit confirms it
11451145
wait_for(timeout.as_secs(), || {
11461146
Ok(commits_submitted.load(Ordering::SeqCst) > commits_before
1147-
&& commits_last_burn_height.load(Ordering::SeqCst) >= commit_burn_height_before
1148-
&& commits_last_stacks_tip.load(Ordering::SeqCst) >= commits_stacks_tip_before
1147+
&& commits_last_burn_height.load(Ordering::SeqCst) > commit_burn_height_before
1148+
&& commits_last_stacks_tip.load(Ordering::SeqCst) > commits_stacks_tip_before
11491149
&& get_chain_info(&self.running_nodes.conf).stacks_tip_height
11501150
> info_before.stacks_tip_height
11511151
&& (!use_nakamoto_blocks_mined

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4656,7 +4656,7 @@ fn tx_replay_with_fork_after_empty_tenures_before_starting_replaying_txs() {
46564656
let sender1_nonce_post_fork = get_account(&http_origin, &sender1_addr).nonce;
46574657
assert_eq!(0, sender1_nonce_post_fork);
46584658

4659-
info!("------------------- Produce Empty Tenuree -------------------------");
4659+
info!("------------------- Produce Empty Tenure -------------------------");
46604660
fault_injection_unstall_miner();
46614661
let tip = get_chain_info(&conf);
46624662
_ = wait_for_tenure_change_tx(30, TenureChangeCause::BlockFound, tip.stacks_tip_height + 1);

0 commit comments

Comments
 (0)