diff options
| author | Andrew Chow <[email protected]> | 2018-03-05 16:39:48 -0500 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2018-03-13 12:39:26 -0400 |
| commit | fab04887c22cf71a4b15ac0b0a127e150229d686 (patch) | |
| tree | efee6b6b92027ca25eb30e4509f14e04d12e78ed /src/wallet/fees.h | |
| parent | Move original knapsack solver tests to coinselector_tests.cpp (diff) | |
| download | discoin-fab04887c22cf71a4b15ac0b0a127e150229d686.tar.xz discoin-fab04887c22cf71a4b15ac0b0a127e150229d686.zip | |
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 225aff08a..a627af70b 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); |