mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 05:23:01 +01:00
Show old-fee, increase a new-fee in Qt fee bumper confirmation dialog
This commit is contained in:
parent
2ec911f60d
commit
2678d3dc63
@ -722,9 +722,24 @@ bool WalletModel::bumpFee(uint256 hash)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// allow a user based fee verification
|
// allow a user based fee verification
|
||||||
QString questionString = tr("Do you want to increase the fee from %1 to %2").arg(
|
QString questionString = tr("Do you want to increase the fee?");
|
||||||
BitcoinUnits::formatHtmlWithUnit(getOptionsModel()->getDisplayUnit(), feeBump->getOldFee()),
|
questionString.append("<br />");
|
||||||
BitcoinUnits::formatHtmlWithUnit(getOptionsModel()->getDisplayUnit(), feeBump->getNewFee()));
|
CAmount oldFee = feeBump->getOldFee();
|
||||||
|
CAmount newFee = feeBump->getNewFee();
|
||||||
|
questionString.append("<table style=\"text-align: left;\">");
|
||||||
|
questionString.append("<tr><td>");
|
||||||
|
questionString.append(tr("Current fee:"));
|
||||||
|
questionString.append("</td><td>");
|
||||||
|
questionString.append(BitcoinUnits::formatHtmlWithUnit(getOptionsModel()->getDisplayUnit(), oldFee));
|
||||||
|
questionString.append("</td></tr><tr><td>");
|
||||||
|
questionString.append(tr("Increase:"));
|
||||||
|
questionString.append("</td><td>");
|
||||||
|
questionString.append(BitcoinUnits::formatHtmlWithUnit(getOptionsModel()->getDisplayUnit(), newFee - oldFee));
|
||||||
|
questionString.append("</td></tr><tr><td>");
|
||||||
|
questionString.append(tr("New fee:"));
|
||||||
|
questionString.append("</td><td>");
|
||||||
|
questionString.append(BitcoinUnits::formatHtmlWithUnit(getOptionsModel()->getDisplayUnit(), newFee));
|
||||||
|
questionString.append("</td></tr></table>");
|
||||||
SendConfirmationDialog confirmationDialog(tr("Confirm fee bump"), questionString);
|
SendConfirmationDialog confirmationDialog(tr("Confirm fee bump"), questionString);
|
||||||
confirmationDialog.exec();
|
confirmationDialog.exec();
|
||||||
QMessageBox::StandardButton retval = (QMessageBox::StandardButton)confirmationDialog.result();
|
QMessageBox::StandardButton retval = (QMessageBox::StandardButton)confirmationDialog.result();
|
||||||
|
Loading…
Reference in New Issue
Block a user