Use MakeUnique<Db>(...)
[bitcoinplatinum.git] / src / wallet / fees.h
blob7b8a7dc868e6d928944fd896697911fa9c40fb9d
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