File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
testnet/stacks-node/src/tests/signer Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -2659,11 +2659,7 @@ impl MemPoolDB {
2659
2659
Ok ( ( ) )
2660
2660
}
2661
2661
2662
- /// Drop and blacklist transactions, so we don't re-broadcast them or re-fetch them.
2663
- /// Do *NOT* remove them from the bloom filter. This will cause them to continue to be
2664
- /// reported as present, which is exactly what we want because we don't want these transactions
2665
- /// to be seen again (so we don't want anyone accidentally "helpfully" pushing them to us, nor
2666
- /// do we want the mempool sync logic to "helpfully" re-discover and re-download them).
2662
+ /// Update the time estimates for the supplied txs in the mempool db
2667
2663
pub fn update_tx_time_estimates ( & mut self , txs : & [ ( Txid , u64 ) ] ) -> Result < ( ) , db_error > {
2668
2664
let sql = "UPDATE mempool SET time_estimate_ms = ? WHERE txid = ?" ;
2669
2665
let mempool_tx = self . tx_begin ( ) ?;
Original file line number Diff line number Diff line change @@ -2974,6 +2974,7 @@ fn signer_set_rollover() {
2974
2974
. running_nodes
2975
2975
. btc_regtest_controller
2976
2976
. get_headers_height ( ) ;
2977
+ let accounts_to_check: Vec < _ > = new_signer_private_keys. iter ( ) . map ( tests:: to_addr) . collect ( ) ;
2977
2978
for stacker_sk in new_signer_private_keys. iter ( ) {
2978
2979
let pox_addr = PoxAddress :: from_legacy (
2979
2980
AddressHashMode :: SerializeP2PKH ,
@@ -3017,6 +3018,13 @@ fn signer_set_rollover() {
3017
3018
submit_tx ( & http_origin, & stacking_tx) ;
3018
3019
}
3019
3020
3021
+ wait_for ( 60 , || {
3022
+ Ok ( accounts_to_check
3023
+ . iter ( )
3024
+ . all ( |acct| get_account ( & http_origin, acct) . nonce >= 1 ) )
3025
+ } )
3026
+ . expect ( "Timed out waiting for stacking txs to be mined" ) ;
3027
+
3020
3028
signer_test. mine_nakamoto_block ( short_timeout) ;
3021
3029
3022
3030
let next_reward_cycle = reward_cycle. saturating_add ( 1 ) ;
You can’t perform that action at this time.
0 commit comments