Bitcoin ABC  0.22.13
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) 2018-2020 The Bitcoin 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 BITCOIN_WALLET_FEES_H
8 #define BITCOIN_WALLET_FEES_H
9 
10 #include <amount.h>
11 #include <feerate.h>
12 
13 class CCoinControl;
14 class CTxMemPool;
15 class CWallet;
16 
21 Amount GetRequiredFee(const CWallet &wallet, unsigned int nTxBytes);
22 
27 Amount GetMinimumFee(const CWallet &wallet, unsigned int nTxBytes,
28  const CCoinControl &coin_control);
29 
34 CFeeRate GetRequiredFeeRate(const CWallet &wallet);
35 
40 CFeeRate GetMinimumFeeRate(const CWallet &wallet,
41  const CCoinControl &coin_control);
42 
43 #endif // BITCOIN_WALLET_FEES_H
CFeeRate GetMinimumFeeRate(const CWallet &wallet, const CCoinControl &coin_control)
Estimate the minimum fee rate considering user set parameters and the required fee.
Definition: fees.cpp:26
Definition: amount.h:17
Coin Control Features.
Definition: coincontrol.h:19
CFeeRate GetRequiredFeeRate(const CWallet &wallet)
Return the minimum required feerate taking into account the minimum relay feerate and user set minimu...
Definition: fees.cpp:22
Amount GetRequiredFee(const CWallet &wallet, unsigned int nTxBytes)
Return the minimum required absolute fee for this size based on the required fee rate.
Definition: fees.cpp:13
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition: txmempool.h:468
Amount GetMinimumFee(const CWallet &wallet, unsigned int nTxBytes, const CCoinControl &coin_control)
Estimate the minimum fee considering user set parameters and the required fee.
Definition: fees.cpp:17
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition: wallet.h:679
Fee rate in satoshis per kilobyte: Amount / kB.
Definition: feerate.h:21