@@ -51,7 +51,7 @@ use stacks::config::{Config as NeonConfig, EventKeyType, EventObserverConfig};
51
51
use stacks::core::mempool::MemPoolWalkStrategy;
52
52
use stacks::core::test_util::{
53
53
insert_tx_in_mempool, make_contract_call, make_contract_publish,
54
- make_stacks_transfer_serialized,
54
+ make_stacks_transfer_serialized, to_addr,
55
55
};
56
56
use stacks::core::{StacksEpochId, CHAIN_ID_TESTNET};
57
57
use stacks::libstackerdb::StackerDBChunkData;
@@ -15424,6 +15424,11 @@ fn bitcoin_reorg_extended_tenure() {
15424
15424
.expect("Timed out waiting for contract-call");
15425
15425
}
15426
15426
15427
+ let last_nonce = miners
15428
+ .signer_test
15429
+ .get_account(&to_addr(&miners.sender_sk))
15430
+ .nonce;
15431
+
15427
15432
info!("------------------------- Triggering Bitcoin Fork -------------------------");
15428
15433
15429
15434
let burn_block_height = get_chain_info(&conf_1).burn_block_height;
@@ -15460,12 +15465,14 @@ fn bitcoin_reorg_extended_tenure() {
15460
15465
15461
15466
info!("Chain info after fork: {:?}", get_chain_info(&conf_1));
15462
15467
15463
- // get at least one block produced before we stall broadcasts
15468
+ // get blocks produced with the "reorged" txs before we stall broadcasts
15464
15469
// to check signer approvals
15465
15470
miners
15466
15471
.signer_test
15467
- .submit_burn_block_call_and_wait(&miners.sender_sk)
15468
- .expect("Timed out waiting for contract-call");
15472
+ .wait_for_nonce_increase(&to_addr(&miners.sender_sk), last_nonce - 1)
15473
+ .unwrap();
15474
+
15475
+ miners.wait_for_chains(60);
15469
15476
15470
15477
// stall p2p broadcast and signer block announcements
15471
15478
// so that we can ensure all the signers approve the proposal
0 commit comments