diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-03-27 13:59:33 +0200 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-04-02 10:12:42 +0200 |
commit | bcc72cccc72f020d6896bbbf4e85df11e1d5a4f0 (patch) | |
tree | 37ffd7214487cb626a0c9e66239bfb82c2f3f32b /src | |
parent | 2718db070589114d54fdf227fb560c1578a7e419 (diff) | |
download | bitcoin-bcc72cccc72f020d6896bbbf4e85df11e1d5a4f0.tar.xz |
Directly abort execution in FeeBumper::commit if wallet or tx is not available
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/feebumper.cpp | 1 |
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]; |