From: tobtoht Date: Thu, 23 Jun 2022 15:14:06 +0000 (+0200) Subject: Send: warn on high fee X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=3b3fcfc42c100e7cc3da8f850054deab7702a5d9;p=gamesguru%2Ffeather.git Send: warn on high fee --- 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);