From 3b3fcfc42c100e7cc3da8f850054deab7702a5d9 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Thu, 23 Jun 2022 17:14:06 +0200 Subject: [PATCH] Send: warn on high fee --- src/dialog/TxConfDialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dialog/TxConfDialog.cpp b/src/dialog/TxConfDialog.cpp index b32a4211..c9cb1a93 100644 --- a/src/dialog/TxConfDialog.cpp +++ b/src/dialog/TxConfDialog.cpp @@ -72,6 +72,11 @@ TxConfDialog::TxConfDialog(QSharedPointer ctx, PendingTransaction *t ui->label_address->setToolTip("Wallet change/primary address"); } + if (tx->fee() > WalletManager::amountFromDouble(0.01)) { + ui->label_fee->setStyleSheet(ColorScheme::RED.asStylesheet(true)); + ui->label_fee->setToolTip("Unrealistic fee. You may be connected to a malicious node."); + } + ui->buttonBox->button(QDialogButtonBox::Ok)->setText("Send"); connect(ui->btn_Advanced, &QPushButton::clicked, this, &TxConfDialog::setShowAdvanced); -- 2.52.0