diff options
author | Gregory Sanders <gsanders87@gmail.com> | 2020-01-14 09:27:08 -0500 |
---|---|---|
committer | Gregory Sanders <gsanders87@gmail.com> | 2020-01-15 10:51:01 -0500 |
commit | 3c30d7118a5d5cb40c3686e0da884d3928caaeba (patch) | |
tree | c0f7dc4e2f3b1468b5c7ac02af4f2652a10998e4 /src/qt | |
parent | e3b19d869612b637f8bb702add0c363afe8adb8f (diff) |
QT: Change bumpFee asserts to simple error message
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/walletmodel.cpp | 6 |
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; |