mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-17 21:50:43 +02:00
Directly abort execution in FeeBumper::commit if wallet or tx is not available
This commit is contained in:
parent
2718db0705
commit
bcc72cccc7
@ -236,6 +236,7 @@ bool CFeeBumper::commit(CWallet *pWallet)
|
|||||||
if (txid.IsNull() || !pWallet->mapWallet.count(txid)) {
|
if (txid.IsNull() || !pWallet->mapWallet.count(txid)) {
|
||||||
vErrors.push_back("Invalid or non-wallet transaction id");
|
vErrors.push_back("Invalid or non-wallet transaction id");
|
||||||
currentResult = BumpFeeResult::MISC_ERROR;
|
currentResult = BumpFeeResult::MISC_ERROR;
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
CWalletTx& oldWtx = pWallet->mapWallet[txid];
|
CWalletTx& oldWtx = pWallet->mapWallet[txid];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user