1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2017 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 #ifndef BITCOIN_WALLET_FEES_H
7 #define BITCOIN_WALLET_FEES_H
11 class CBlockPolicyEstimator
;
15 struct FeeCalculation
;
18 * Return the minimum required fee taking into account the
19 * floating relay fee and user set minimum transaction fee
21 CAmount
GetRequiredFee(unsigned int nTxBytes
);
24 * Estimate the minimum fee considering user set parameters
25 * and the required fee
27 CAmount
GetMinimumFee(unsigned int nTxBytes
, const CCoinControl
& coin_control
, const CTxMemPool
& pool
, const CBlockPolicyEstimator
& estimator
, FeeCalculation
*feeCalc
);
30 * Return the maximum feerate for discarding change.
32 CFeeRate
GetDiscardRate(const CBlockPolicyEstimator
& estimator
);
34 #endif // BITCOIN_WALLET_FEES_H