|
5 | 5 | #include "qt/pivx/sendcustomfeedialog.h" |
6 | 6 | #include "qt/pivx/forms/ui_sendcustomfeedialog.h" |
7 | 7 | #include "qt/pivx/qtutils.h" |
8 | | -#include "walletmodel.h" |
| 8 | +#include "qt/walletmodel.h" |
9 | 9 | #include "optionsmodel.h" |
10 | 10 | #include "guiutil.h" |
| 11 | +#include "wallet/fees.h" |
11 | 12 | #include <QListView> |
12 | 13 | #include <QComboBox> |
13 | 14 |
|
@@ -123,19 +124,19 @@ void SendCustomFeeDialog::accept() |
123 | 124 | // Check insane fee |
124 | 125 | const CAmount insaneFee = ::minRelayTxFee.GetFeePerK() * 10000; |
125 | 126 | if (customFee >= insaneFee) { |
126 | | - ui->lineEditCustomFee->setText(BitcoinUnits::format(walletModel->getOptionsModel()->getDisplayUnit(), insaneFee - CWallet::GetRequiredFee(1000))); |
| 127 | + ui->lineEditCustomFee->setText(BitcoinUnits::format(walletModel->getOptionsModel()->getDisplayUnit(), insaneFee - GetRequiredFee(1000))); |
127 | 128 | inform(tr("Fee too high. Must be below: %1").arg( |
128 | 129 | BitcoinUnits::formatWithUnit(walletModel->getOptionsModel()->getDisplayUnit(), insaneFee))); |
129 | | - } else if (customFee < CWallet::GetRequiredFee(1000)) { |
| 130 | + } else if (customFee < GetRequiredFee(1000)) { |
130 | 131 | CAmount nFee = 0; |
131 | 132 | if (walletModel->hasWalletCustomFee()) { |
132 | 133 | walletModel->getWalletCustomFee(nFee); |
133 | 134 | } else { |
134 | | - nFee = CWallet::GetRequiredFee(1000); |
| 135 | + nFee = GetRequiredFee(1000); |
135 | 136 | } |
136 | 137 | ui->lineEditCustomFee->setText(BitcoinUnits::format(walletModel->getOptionsModel()->getDisplayUnit(), nFee)); |
137 | 138 | inform(tr("Fee too low. Must be at least: %1").arg( |
138 | | - BitcoinUnits::formatWithUnit(walletModel->getOptionsModel()->getDisplayUnit(), CWallet::GetRequiredFee(1000)))); |
| 139 | + BitcoinUnits::formatWithUnit(walletModel->getOptionsModel()->getDisplayUnit(), GetRequiredFee(1000)))); |
139 | 140 | } else { |
140 | 141 | walletModel->setWalletCustomFee(fUseCustomFee, customFee); |
141 | 142 | QDialog::accept(); |
|
0 commit comments