Skip to content

Commit

Permalink
[GUI] Custom fee, min amount validation.
Browse files Browse the repository at this point in the history
Github-Pull: #1576
Rebased-From: 03be61e
  • Loading branch information
furszy authored and Fuzzbawls committed May 5, 2020
1 parent 15c5ddb commit da791e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qt/pivx/sendcustomfeedialog.cpp
Expand Up @@ -128,6 +128,9 @@ void SendCustomFeeDialog::accept()
if (customFee >= insaneFee) {
inform(tr("Fee too high. Must be below: %1").arg(
BitcoinUnits::formatWithUnit(walletModel->getOptionsModel()->getDisplayUnit(), insaneFee)));
} else if (customFee < CWallet::minTxFee.GetFeePerK()) {
inform(tr("Fee too low. Must be above: %1").arg(
BitcoinUnits::formatWithUnit(walletModel->getOptionsModel()->getDisplayUnit(), CWallet::minTxFee.GetFeePerK() * 1000)));
} else {
walletModel->setWalletCustomFee(fUseCustomFee, customFee);
QDialog::accept();
Expand Down

0 comments on commit da791e0

Please sign in to comment.