aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.cpp
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2020-01-14 09:27:08 -0500
committerGregory Sanders <gsanders87@gmail.com>2020-01-15 10:51:01 -0500
commit3c30d7118a5d5cb40c3686e0da884d3928caaeba (patch)
treec0f7dc4e2f3b1468b5c7ac02af4f2652a10998e4 /src/qt/walletmodel.cpp
parente3b19d869612b637f8bb702add0c363afe8adb8f (diff)
QT: Change bumpFee asserts to simple error message
Diffstat (limited to 'src/qt/walletmodel.cpp')
-rw-r--r--src/qt/walletmodel.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp
index b8ba29a6e6..6c3a06f3a2 100644
--- a/src/qt/walletmodel.cpp
+++ b/src/qt/walletmodel.cpp
@@ -527,8 +527,10 @@ bool WalletModel::bumpFee(uint256 hash, uint256& new_hash)
PartiallySignedTransaction psbtx(mtx);
bool complete = false;
const TransactionError err = wallet().fillPSBT(psbtx, complete, SIGHASH_ALL, false /* sign */, true /* bip32derivs */);
- assert(!complete);
- assert(err == TransactionError::OK);
+ if (err != TransactionError::OK || complete) {
+ QMessageBox::critical(nullptr, tr("Fee bump error"), tr("Can't draft transaction."));
+ return false;
+ }
// Serialize the PSBT
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << psbtx;