Send: warn on high fee

This commit is contained in:
tobtoht 2022-06-23 17:14:06 +02:00
parent 04598c9e55
commit 3b3fcfc42c
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -72,6 +72,11 @@ TxConfDialog::TxConfDialog(QSharedPointer<AppContext> 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);