From 60bc46821891ba2b161001e552eff8b970422db1 Mon Sep 17 00:00:00 2001 From: MishaPozdnikin Date: Thu, 25 Feb 2021 17:32:06 +0200 Subject: [PATCH] Automatically set the lowest possible Custom Fee when user type in fee that is too low. --- src/qt/pivx/sendcustomfeedialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qt/pivx/sendcustomfeedialog.cpp b/src/qt/pivx/sendcustomfeedialog.cpp index 21179611b9dd1..fa563c51a392d 100644 --- a/src/qt/pivx/sendcustomfeedialog.cpp +++ b/src/qt/pivx/sendcustomfeedialog.cpp @@ -126,6 +126,9 @@ void SendCustomFeeDialog::accept() inform(tr("Fee too high. Must be below: %1").arg( BitcoinUnits::formatWithUnit(walletModel->getOptionsModel()->getDisplayUnit(), insaneFee))); } else if (customFee < CWallet::GetRequiredFee(1000)) { + CAmount nFee; + walletModel->getWalletCustomFee(nFee); + ui->lineEditCustomFee->setText(BitcoinUnits::format(walletModel->getOptionsModel()->getDisplayUnit(), nFee)); inform(tr("Fee too low. Must be at least: %1").arg( BitcoinUnits::formatWithUnit(walletModel->getOptionsModel()->getDisplayUnit(), CWallet::GetRequiredFee(1000)))); } else {