Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

fees.h
Go to the documentation of this file.
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.
5 
6 #ifndef BITCOIN_WALLET_FEES_H
7 #define BITCOIN_WALLET_FEES_H
8 
9 #include <amount.h>
10 
12 class CCoinControl;
13 class CFeeRate;
14 class CTxMemPool;
15 struct FeeCalculation;
16 
21 CAmount GetRequiredFee(unsigned int nTxBytes);
22 
27 CAmount GetMinimumFee(unsigned int nTxBytes, const CCoinControl& coin_control, const CTxMemPool& pool, const CBlockPolicyEstimator& estimator, FeeCalculation *feeCalc);
28 
33 
34 #endif // BITCOIN_WALLET_FEES_H
CFeeRate GetDiscardRate(const CBlockPolicyEstimator &estimator)
Return the maximum feerate for discarding change.
Definition: fees.cpp:78
Coin Control Features.
Definition: coincontrol.h:28
int64_t CAmount
Amount in satoshis (Can be negative)
Definition: amount.h:12
We want to be able to estimate feerates that are needed on tx&#39;s to be included in a certain number of...
Definition: fees.h:138
CAmount GetRequiredFee(unsigned int nTxBytes)
Return the minimum required fee taking into account the floating relay fee and user set minimum trans...
Definition: fees.cpp:16
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition: txmempool.h:442
Fee rate in satoshis per kilobyte: CAmount / kB.
Definition: feerate.h:19
CAmount GetMinimumFee(unsigned int nTxBytes, const CCoinControl &coin_control, const CTxMemPool &pool, const CBlockPolicyEstimator &estimator, FeeCalculation *feeCalc)
Estimate the minimum fee considering user set parameters and the required fee.
Definition: fees.cpp:21
Released under the MIT license