Skip to content

Commit

Permalink
Automatically set the lowest possible Custom Fee when user type in fe…
Browse files Browse the repository at this point in the history
…e that is too low.

Github-Pull: #2215
Rebased-From: 60bc468
  • Loading branch information
MishaPozdnikin authored and furszy committed Apr 9, 2021
1 parent 0d2555e commit 1fc145c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qt/pivx/sendcustomfeedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,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 {
Expand Down

0 comments on commit 1fc145c

Please sign in to comment.