From bcc72cccc72f020d6896bbbf4e85df11e1d5a4f0 Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Mon, 27 Mar 2017 13:59:33 +0200 Subject: [PATCH] Directly abort execution in FeeBumper::commit if wallet or tx is not available --- src/wallet/feebumper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet/feebumper.cpp b/src/wallet/feebumper.cpp index 98b6da83c..57c879447 100644 --- a/src/wallet/feebumper.cpp +++ b/src/wallet/feebumper.cpp @@ -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];