Directly abort execution in FeeBumper::commit if wallet or tx is not available

This commit is contained in:
Jonas Schnelli committed 2017-04-02 10:12:42 +02:00
1 parent 2718db0705
commit bcc72cccc7
1 file changed
+1
+1
View File
@@ -236,6 +236,7 @@ bool CFeeBumper::commit(CWallet *pWallet)
if (txid.IsNull() || !pWallet->mapWallet.count(txid)) {
vErrors.push_back("Invalid or non-wallet transaction id");
currentResult = BumpFeeResult::MISC_ERROR;
return false;
}
CWalletTx& oldWtx = pWallet->mapWallet[txid];