Browse Source

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

0.15
Jonas Schnelli 8 years ago
parent
commit
bcc72cccc7
No known key found for this signature in database
GPG Key ID: 1EB776BB03C7922D
  1. 1
      src/wallet/feebumper.cpp

1
src/wallet/feebumper.cpp

@ -236,6 +236,7 @@ bool CFeeBumper::commit(CWallet *pWallet)
if (txid.IsNull() || !pWallet->mapWallet.count(txid)) { if (txid.IsNull() || !pWallet->mapWallet.count(txid)) {
vErrors.push_back("Invalid or non-wallet transaction id"); vErrors.push_back("Invalid or non-wallet transaction id");
currentResult = BumpFeeResult::MISC_ERROR; currentResult = BumpFeeResult::MISC_ERROR;
return false;
} }
CWalletTx& oldWtx = pWallet->mapWallet[txid]; CWalletTx& oldWtx = pWallet->mapWallet[txid];

Loading…
Cancel
Save