Bitcoin Core
32.1.0
P2P Digital Currency
Toggle main menu visibility
Loading...
Searching...
No Matches
src
wallet
fees.h
Go to the documentation of this file.
1
// Copyright (c) 2009-2010 Satoshi Nakamoto
2
// Copyright (c) 2009-present 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 <
consensus/amount.h
>
10
#include <
wallet/types.h
>
11
12
class
CFeeRate
;
13
14
namespace
wallet
{
15
class
CCoinControl
;
16
class
CWallet
;
17
22
CAmount
GetRequiredFee
(
const
CWallet
& wallet,
unsigned
int
nTxBytes);
23
27
CAmount
GetMinimumFee
(
const
MinimumFeeRateResult
& min_fee_rate,
unsigned
int
nTxBytes);
28
33
CFeeRate
GetRequiredFeeRate
(
const
CWallet
& wallet);
34
39
MinimumFeeRateResult
GetMinimumFeeRate
(
const
CWallet
& wallet,
const
CCoinControl
& coin_control);
40
44
CFeeRate
GetDiscardRate
(
const
CWallet
& wallet);
45
}
// namespace wallet
46
47
#endif
// BITCOIN_WALLET_FEES_H
amount.h
CAmount
int64_t CAmount
Amount in satoshis (Can be negative).
Definition
amount.h:12
CFeeRate
Fee rate in satoshis per virtualbyte: CAmount / vB the feerate is represented internally as FeeFrac.
Definition
feerate.h:32
wallet::CCoinControl
Coin Control Features.
Definition
coincontrol.h:83
wallet::CWallet
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition
wallet.h:310
wallet
Definition
coin_selection.cpp:31
wallet::GetRequiredFeeRate
CFeeRate GetRequiredFeeRate(const CWallet &wallet)
Return the minimum required feerate taking into account the minimum relay feerate and user set minimu...
Definition
fees.cpp:27
wallet::GetMinimumFeeRate
MinimumFeeRateResult GetMinimumFeeRate(const CWallet &wallet, const CCoinControl &coin_control)
Estimate the minimum fee rate considering user set parameters and the required fee.
Definition
fees.cpp:32
wallet::GetMinimumFee
CAmount GetMinimumFee(const MinimumFeeRateResult &min_fee_rate, unsigned int nTxBytes)
Return the minimum fee for this size given a fee rate result.
Definition
fees.cpp:22
wallet::GetDiscardRate
CFeeRate GetDiscardRate(const CWallet &wallet)
Return the maximum feerate for discarding change.
Definition
fees.cpp:90
wallet::GetRequiredFee
CAmount 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:16
wallet::MinimumFeeRateResult
Definition
types.h:27
types.h
Generated on
for Bitcoin Core by
1.18.0