@@ -89,6 +89,10 @@ def run_test(self):
89
89
if txids == [child_txid , txid ]:
90
90
break
91
91
bumped = node .bumpfee (child_txid )
92
+ # The scheduler queue creates a copy of the added tx after
93
+ # send/bumpfee and re-adds it to the wallet (undoing the next
94
+ # removeprunedfunds). So empty the scheduler queue:
95
+ node .syncwithvalidationinterfacequeue ()
92
96
node .removeprunedfunds (child_txid )
93
97
child_txid = bumped ["txid" ]
94
98
entry_time = node .getmempoolentry (child_txid )["time" ]
@@ -98,13 +102,13 @@ def run_test(self):
98
102
block = create_block (int (node .getbestblockhash (), 16 ), create_coinbase (node .getblockcount () + 1 ), block_time )
99
103
block .solve ()
100
104
node .submitblock (block .serialize ().hex ())
105
+ # Set correct m_best_block_time, which is used in ResubmitWalletTransactions
101
106
node .syncwithvalidationinterfacequeue ()
102
107
103
108
# Evict these txs from the mempool
104
109
evict_time = block_time + 60 * 60 * DEFAULT_MEMPOOL_EXPIRY_HOURS + 5
105
110
node .setmocktime (evict_time )
106
111
indep_send = node .send (outputs = [{node .getnewaddress (): 1 }], options = {"inputs" : [indep_utxo ]})
107
- node .syncwithvalidationinterfacequeue ()
108
112
node .getmempoolentry (indep_send ["txid" ])
109
113
assert_raises_rpc_error (- 5 , "Transaction not in mempool" , node .getmempoolentry , txid )
110
114
assert_raises_rpc_error (- 5 , "Transaction not in mempool" , node .getmempoolentry , child_txid )
0 commit comments