mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
test: Add missing syncwithvalidationinterfacequeue
This commit is contained in:
parent
faa4916529
commit
fa1ce96184
2 changed files with 5 additions and 1 deletions
|
@ -882,7 +882,7 @@ bool CWallet::MarkReplaced(const uint256& originalHash, const uint256& newHash)
|
||||||
|
|
||||||
wtx.mapValue["replaced_by_txid"] = newHash.ToString();
|
wtx.mapValue["replaced_by_txid"] = newHash.ToString();
|
||||||
|
|
||||||
// Refresh mempool status without waiting for transactionRemovedFromMempool
|
// Refresh mempool status without waiting for transactionRemovedFromMempool or transactionAddedToMempool
|
||||||
RefreshMempoolStatus(wtx, chain());
|
RefreshMempoolStatus(wtx, chain());
|
||||||
|
|
||||||
WalletBatch batch(GetDatabase());
|
WalletBatch batch(GetDatabase());
|
||||||
|
|
|
@ -89,6 +89,10 @@ class ResendWalletTransactionsTest(BitcoinTestFramework):
|
||||||
if txids == [child_txid, txid]:
|
if txids == [child_txid, txid]:
|
||||||
break
|
break
|
||||||
bumped = node.bumpfee(child_txid)
|
bumped = node.bumpfee(child_txid)
|
||||||
|
# The scheduler queue creates a copy of the added tx after
|
||||||
|
# send/bumpfee and re-adds it to the wallet (undoing the next
|
||||||
|
# removeprunedfunds). So empty the scheduler queue:
|
||||||
|
node.syncwithvalidationinterfacequeue()
|
||||||
node.removeprunedfunds(child_txid)
|
node.removeprunedfunds(child_txid)
|
||||||
child_txid = bumped["txid"]
|
child_txid = bumped["txid"]
|
||||||
entry_time = node.getmempoolentry(child_txid)["time"]
|
entry_time = node.getmempoolentry(child_txid)["time"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue