Skip to content

Commit bcc72cc

Browse files
committed
Directly abort execution in FeeBumper::commit if wallet or tx is not available
1 parent 2718db0 commit bcc72cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wallet/feebumper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ bool CFeeBumper::commit(CWallet *pWallet)
236236
if (txid.IsNull() || !pWallet->mapWallet.count(txid)) {
237237
vErrors.push_back("Invalid or non-wallet transaction id");
238238
currentResult = BumpFeeResult::MISC_ERROR;
239+
return false;
239240
}
240241
CWalletTx& oldWtx = pWallet->mapWallet[txid];
241242

0 commit comments

Comments
 (0)