Merge #12079: Improve prioritisetransaction test coverage
[bitcoinplatinum.git] / src / wallet / fees.h
blob225aff08ad6b468c06aacf3aa9288c6aa89141ad
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
9 #include <amount.h>
11 class CBlockPolicyEstimator;
12 class CCoinControl;
13 class CFeeRate;
14 class CTxMemPool;
15 struct FeeCalculation;
17 /**
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);
23 /**
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);
29 /**
30 * Return the maximum feerate for discarding change.
32 CFeeRate GetDiscardRate(const CBlockPolicyEstimator& estimator);
34 #endif // BITCOIN_WALLET_FEES_H