diff options
author | Prayank <prayank23@outlook.com> | 2021-01-17 05:14:09 +0530 |
---|---|---|
committer | unknown <prayank23@outlook.com> | 2021-01-26 13:51:21 +0530 |
commit | 232d1f92bb4c99ce0f5d210b17562c96c32ab61a (patch) | |
tree | 455795874525c941258d7612317b405a6b5fa962 | |
parent | f1f26b8d5baec4a45a3a9ba0440cd4eff7af8407 (diff) |
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 <jon@atack.com>
-rw-r--r-- | src/qt/walletmodel.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index cad472b43b..c99f861ccb 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -514,6 +514,13 @@ bool WalletModel::bumpFee(uint256 hash, uint256& new_hash) questionString.append("</td><td>"); questionString.append(BitcoinUnits::formatHtmlWithUnit(getOptionsModel()->getDisplayUnit(), new_fee)); questionString.append("</td></tr></table>"); + + // Display warning in the "Confirm fee bump" window if the "Coin Control Features" option is enabled + if (getOptionsModel()->getCoinControlFeatures()) { + questionString.append("<br><br>"); + 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.")); + } + SendConfirmationDialog confirmationDialog(tr("Confirm fee bump"), questionString); confirmationDialog.exec(); QMessageBox::StandardButton retval = static_cast<QMessageBox::StandardButton>(confirmationDialog.result()); |