#48 - Show warning when using non-default fee

This commit is contained in:
Aditya Kulkarni
2018-11-14 10:19:45 -08:00
parent 6600a80e3f
commit 4df615509f
2 changed files with 20 additions and 0 deletions

View File

@@ -146,6 +146,19 @@
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="warningLabel">
<property name="styleSheet">
<string notr="true">color: red;</string>
</property>
<property name="text">
<string>You are using a custom fee. Since fees are publically visible, you are giving up some privacy. Please use this only if you know what you are doing!</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">

View File

@@ -490,6 +490,13 @@ bool MainWindow::confirmTx(Tx tx) {
minerFeeUSD->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
confirm.gridLayout->addWidget(minerFeeUSD, i, 2, 1, 1);
minerFeeUSD->setText(Settings::getUSDFormat(tx.fee));
if (tx.fee == Settings::getMinerFee()) {
// Default fee
confirm.warningLabel->setVisible(false);
} else {
confirm.warningLabel->setVisible(true);
}
}
// And FromAddress in the confirm dialog