Permalink
Browse files
remove default argument from GetMinimumFee
- Loading branch information...
Showing
with
3 additions
and
3 deletions.
-
+1
−1
src/qt/coincontroldialog.cpp
-
+1
−1
src/wallet/wallet.cpp
-
+1
−1
src/wallet/wallet.h
|
|
@@ -510,7 +510,7 @@ void CoinControlDialog::updateLabels(WalletModel *model, QDialog* dialog) |
|
|
nBytes -= 34;
|
|
|
|
|
|
// Fee
|
|
|
- nPayFee = CWallet::GetMinimumFee(nBytes, coinControl->nConfirmTarget, ::mempool, ::feeEstimator);
|
|
|
+ nPayFee = CWallet::GetMinimumFee(nBytes, coinControl->nConfirmTarget, ::mempool, ::feeEstimator, nullptr /* FeeCalculation */, false /* ignoreGlobalPayTxFee */);
|
|
|
|
|
|
if (nPayAmount > 0)
|
|
|
{
|
|
|
|
|
|
@@ -2724,7 +2724,7 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CWalletT |
|
|
if (coinControl && coinControl->nConfirmTarget > 0)
|
|
|
currentConfirmationTarget = coinControl->nConfirmTarget;
|
|
|
|
|
|
- CAmount nFeeNeeded = GetMinimumFee(nBytes, currentConfirmationTarget, ::mempool, ::feeEstimator, &feeCalc);
|
|
|
+ CAmount nFeeNeeded = GetMinimumFee(nBytes, currentConfirmationTarget, ::mempool, ::feeEstimator, &feeCalc, false /* ignoreGlobalPayTxFee */);
|
|
|
if (coinControl && coinControl->fOverrideFeeRate)
|
|
|
nFeeNeeded = coinControl->nFeeRate.GetFee(nBytes);
|
|
|
|
|
|
|
|
|
@@ -963,7 +963,7 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface |
|
|
* Estimate the minimum fee considering user set parameters
|
|
|
* and the required fee
|
|
|
*/
|
|
|
- static CAmount GetMinimumFee(unsigned int nTxBytes, unsigned int nConfirmTarget, const CTxMemPool& pool, const CBlockPolicyEstimator& estimator, FeeCalculation *feeCalc = nullptr, bool ignoreGlobalPayTxFee = false);
|
|
|
+ static CAmount GetMinimumFee(unsigned int nTxBytes, unsigned int nConfirmTarget, const CTxMemPool& pool, const CBlockPolicyEstimator& estimator, FeeCalculation *feeCalc, bool ignoreGlobalPayTxFee);
|
|
|
/**
|
|
|
* Return the minimum required fee taking into account the
|
|
|
* floating relay fee and user set minimum transaction fee
|
|
|
|
0 comments on commit
cfaef69