Skip to content

Commit

Permalink
Directly abort execution in FeeBumper::commit if wallet or tx is not …
Browse files Browse the repository at this point in the history
…available
  • Loading branch information
jonasschnelli committed Apr 2, 2017
1 parent 2718db0 commit bcc72cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wallet/feebumper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit bcc72cc

Please sign in to comment.