mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-04 17:52:25 +01:00
wallet: Mark replaced tx to not be in the mempool anymore
This commit is contained in:
@@ -791,6 +791,12 @@ bool CWallet::MarkReplaced(const uint256& originalHash, const uint256& newHash)
|
||||
|
||||
wtx.mapValue["replaced_by_txid"] = newHash.ToString();
|
||||
|
||||
// Refresh mempool status without waiting for transactionRemovedFromMempool
|
||||
// notification so the wallet is in an internally consistent state and
|
||||
// immediately knows the old transaction should not be considered trusted
|
||||
// and is eligible to be abandoned
|
||||
wtx.fInMempool = chain().isInMempool(originalHash);
|
||||
|
||||
WalletBatch batch(GetDatabase());
|
||||
|
||||
bool success = true;
|
||||
|
||||
Reference in New Issue
Block a user