BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
Functions
fees.h File Reference
#include <amount.h>
Include dependency graph for fees.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

CAmount GetRequiredFee (const CWallet &wallet, unsigned int nTxBytes)
 Return the minimum required absolute fee for this size based on the required fee rate. More...
 
CAmount GetMinimumFee (const CWallet &wallet, 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. More...
 
CFeeRate GetRequiredFeeRate (const CWallet &wallet)
 Return the minimum required feerate taking into account the minimum relay feerate and user set minimum transaction feerate. More...
 
CFeeRate GetMinimumFeeRate (const CWallet &wallet, const CCoinControl &coin_control, const CTxMemPool &pool, const CBlockPolicyEstimator &estimator, FeeCalculation *feeCalc)
 Estimate the minimum fee rate considering user set parameters and the required fee. More...
 
CFeeRate GetDiscardRate (const CWallet &wallet, const CBlockPolicyEstimator &estimator)
 Return the maximum feerate for discarding change. More...
 

Function Documentation

◆ GetDiscardRate()

CFeeRate GetDiscardRate ( const CWallet wallet,
const CBlockPolicyEstimator estimator 
)

Return the maximum feerate for discarding change.

Definition at line 93 of file fees.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMinimumFee()

CAmount GetMinimumFee ( const CWallet wallet,
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 at line 22 of file fees.cpp.

Here is the call graph for this function:

◆ GetMinimumFeeRate()

CFeeRate GetMinimumFeeRate ( const CWallet wallet,
const CCoinControl coin_control,
const CTxMemPool pool,
const CBlockPolicyEstimator estimator,
FeeCalculation feeCalc 
)

Estimate the minimum fee rate considering user set parameters and the required fee.

Definition at line 38 of file fees.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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 at line 16 of file fees.cpp.

Here is the call graph for this function:

◆ GetRequiredFeeRate()

CFeeRate GetRequiredFeeRate ( const CWallet wallet)

Return the minimum required feerate taking into account the minimum relay feerate and user set minimum transaction feerate.

Definition at line 33 of file fees.cpp.

Here is the caller graph for this function: