Skip to content

Commit 232d1f9

Browse files
Prayankjonatack
andcommitted
Add information to "Confirm fee bump" window
Check if "Coin Control features" are enabled to display warning before broadcasting replacement transaction Workaround to fix issue: bitcoin/bitcoin#20795 Co-authored-by: Jon Atack <[email protected]>
1 parent f1f26b8 commit 232d1f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/qt/walletmodel.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,13 @@ bool WalletModel::bumpFee(uint256 hash, uint256& new_hash)
514514
questionString.append("</td><td>");
515515
questionString.append(BitcoinUnits::formatHtmlWithUnit(getOptionsModel()->getDisplayUnit(), new_fee));
516516
questionString.append("</td></tr></table>");
517+
518+
// Display warning in the "Confirm fee bump" window if the "Coin Control Features" option is enabled
519+
if (getOptionsModel()->getCoinControlFeatures()) {
520+
questionString.append("<br><br>");
521+
questionString.append(tr("Warning: This may pay the additional fee by reducing change outputs or adding inputs, when necessary. It may add a new change output if one does not already exist. These changes may potentially leak privacy."));
522+
}
523+
517524
SendConfirmationDialog confirmationDialog(tr("Confirm fee bump"), questionString);
518525
confirmationDialog.exec();
519526
QMessageBox::StandardButton retval = static_cast<QMessageBox::StandardButton>(confirmationDialog.result());

0 commit comments

Comments
 (0)