diff options
author | Andrew Chow <achow101-github@achow101.com> | 2018-03-05 16:39:48 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2018-03-13 12:39:26 -0400 |
commit | fab04887c22cf71a4b15ac0b0a127e150229d686 (patch) | |
tree | efee6b6b92027ca25eb30e4509f14e04d12e78ed /src/wallet/fees.h | |
parent | cd927ff3283fc23a5f42c178e10bcaf5409bb7ea (diff) |
Add a GetMinimumFeeRate function which is wrapped by GetMinimumFee
Diffstat (limited to 'src/wallet/fees.h')
-rw-r--r-- | src/wallet/fees.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wallet/fees.h b/src/wallet/fees.h index 225aff08ad..a627af70b0 100644 --- a/src/wallet/fees.h +++ b/src/wallet/fees.h @@ -27,6 +27,18 @@ CAmount GetRequiredFee(unsigned int nTxBytes); CAmount GetMinimumFee(unsigned int nTxBytes, const CCoinControl& coin_control, const CTxMemPool& pool, const CBlockPolicyEstimator& estimator, FeeCalculation *feeCalc); /** + * Return the minimum required feerate taking into account the + * floating relay feerate and user set minimum transaction feerate + */ +CFeeRate GetRequiredFeeRate(); + +/** + * Estimate the minimum fee rate considering user set parameters + * and the required fee + */ +CFeeRate GetMinimumFeeRate(const CCoinControl& coin_control, const CTxMemPool& pool, const CBlockPolicyEstimator& estimator, FeeCalculation *feeCalc); + +/** * Return the maximum feerate for discarding change. */ CFeeRate GetDiscardRate(const CBlockPolicyEstimator& estimator); |