Skip to content

Commit 3c30d71

Browse files
committed
QT: Change bumpFee asserts to simple error message
1 parent e3b19d8 commit 3c30d71

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/qt/walletmodel.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,10 @@ bool WalletModel::bumpFee(uint256 hash, uint256& new_hash)
527527
PartiallySignedTransaction psbtx(mtx);
528528
bool complete = false;
529529
const TransactionError err = wallet().fillPSBT(psbtx, complete, SIGHASH_ALL, false /* sign */, true /* bip32derivs */);
530-
assert(!complete);
531-
assert(err == TransactionError::OK);
530+
if (err != TransactionError::OK || complete) {
531+
QMessageBox::critical(nullptr, tr("Fee bump error"), tr("Can't draft transaction."));
532+
return false;
533+
}
532534
// Serialize the PSBT
533535
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
534536
ssTx << psbtx;

0 commit comments

Comments
 (0)