ask fee
This commit is contained in:
@@ -380,3 +380,15 @@ void BitcoinGUI::closeEvent(QCloseEvent *event)
|
||||
}
|
||||
QMainWindow::closeEvent(event);
|
||||
}
|
||||
|
||||
void BitcoinGUI::askFee(qint64 nFeeRequired, bool *payFee)
|
||||
{
|
||||
QString strMessage =
|
||||
tr("This transaction is over the size limit. You can still send it for a fee of %1, "
|
||||
"which goes to the nodes that process your transaction and helps to support the network. "
|
||||
"Do you want to pay the fee?").arg(QString::fromStdString(FormatMoney(nFeeRequired)));
|
||||
QMessageBox::StandardButton retval = QMessageBox::question(
|
||||
this, tr("Sending..."), strMessage,
|
||||
QMessageBox::Yes|QMessageBox::Cancel, QMessageBox::Yes);
|
||||
*payFee = (retval == QMessageBox::Yes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user