aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/feebumper.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2017-03-27 13:59:33 +0200
committerJonas Schnelli <dev@jonasschnelli.ch>2017-04-02 10:12:42 +0200
commitbcc72cccc72f020d6896bbbf4e85df11e1d5a4f0 (patch)
tree37ffd7214487cb626a0c9e66239bfb82c2f3f32b /src/wallet/feebumper.cpp
parent2718db070589114d54fdf227fb560c1578a7e419 (diff)
downloadbitcoin-bcc72cccc72f020d6896bbbf4e85df11e1d5a4f0.tar.xz
Directly abort execution in FeeBumper::commit if wallet or tx is not available
Diffstat (limited to 'src/wallet/feebumper.cpp')
-rw-r--r--src/wallet/feebumper.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/feebumper.cpp b/src/wallet/feebumper.cpp
index 98b6da83c2..57c879447c 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];