Raven Core  3.0.0
P2P Digital Currency
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 // Copyright (c) 2017-2019 The Raven Core developers
4 // Distributed under the MIT software license, see the accompanying
5 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 
7 #ifndef RAVEN_WALLET_FEES_H
8 #define RAVEN_WALLET_FEES_H
9 
10 #include "amount.h"
11 
13 class CCoinControl;
14 class CFeeRate;
15 class CTxMemPool;
16 struct FeeCalculation;
17 
22 CAmount GetRequiredFee(unsigned int nTxBytes);
23 
28 CAmount GetMinimumFee(unsigned int nTxBytes, const CCoinControl& coin_control, const CTxMemPool& pool, const CBlockPolicyEstimator& estimator, FeeCalculation *feeCalc);
29 
34 
35 #endif // RAVEN_WALLET_FEES_H
CFeeRate GetDiscardRate(const CBlockPolicyEstimator &estimator)
Return the maximum feerate for discarding change.
Definition: fees.cpp:81
Coin Control Features.
Definition: coincontrol.h:17
int64_t CAmount
Amount in corbies (Can be negative)
Definition: amount.h:13
We want to be able to estimate feerates that are needed on tx's to be included in a certain number of...
Definition: fees.h:139
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:17
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition: txmempool.h:416
Fee rate in satoshis per kilobyte: CAmount / kB.
Definition: feerate.h:20
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:23