Skip to content

Commit fa1ce96

Browse files
author
MacroFake
committed
test: Add missing syncwithvalidationinterfacequeue
1 parent faa4916 commit fa1ce96

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ bool CWallet::MarkReplaced(const uint256& originalHash, const uint256& newHash)
882882

883883
wtx.mapValue["replaced_by_txid"] = newHash.ToString();
884884

885-
// Refresh mempool status without waiting for transactionRemovedFromMempool
885+
// Refresh mempool status without waiting for transactionRemovedFromMempool or transactionAddedToMempool
886886
RefreshMempoolStatus(wtx, chain());
887887

888888
WalletBatch batch(GetDatabase());

test/functional/wallet_resendwallettransactions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ def run_test(self):
8989
if txids == [child_txid, txid]:
9090
break
9191
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()
9296
node.removeprunedfunds(child_txid)
9397
child_txid = bumped["txid"]
9498
entry_time = node.getmempoolentry(child_txid)["time"]

0 commit comments

Comments
 (0)