39 feerate_needed = *(coin_control.
m_feerate);
68 if (feerate_needed < min_mempool_feerate) {
69 feerate_needed = min_mempool_feerate;
76 if (required_feerate > feerate_needed) {
77 feerate_needed = required_feerate;
80 return feerate_needed;
virtual CFeeRate mempoolMinFee()=0
Mempool minimum fee.
virtual CFeeRate relayDustFee()=0
Relay dust fee setting (-dustrelayfee), reflecting lowest rate it's economical to spend...
CAmount GetMinimumFee(const CWallet &wallet, unsigned int nTxBytes, const CCoinControl &coin_control, FeeCalculation *feeCalc)
Estimate the minimum fee considering user set parameters and the required fee.
CFeeRate GetDiscardRate(const CWallet &wallet)
Return the maximum feerate for discarding change.
Force estimateSmartFee to use non-conservative estimates.
bool fOverrideFeeRate
Override automatic min/max checks on fee, m_feerate must be set if true.
CFeeRate GetMinimumFeeRate(const CWallet &wallet, const CCoinControl &coin_control, FeeCalculation *feeCalc)
Estimate the minimum fee rate considering user set parameters and the required fee.
Force estimateSmartFee to use conservative estimates.
CFeeRate m_min_fee
Override with -mintxfee.
interfaces::Chain & chain() const
Interface for accessing chain state.
int64_t CAmount
Amount in satoshis (Can be negative)
CFeeRate m_fallback_fee
If fee estimation does not have enough data to provide estimates, use this fee instead.
Optional< bool > m_signal_bip125_rbf
Override the wallet's m_signal_rbf if set.
virtual CFeeRate estimateSmartFee(int num_blocks, bool conservative, FeeCalculation *calc=nullptr)=0
Estimate smart fee.
Optional< unsigned int > m_confirm_target
Override the default confirmation target if set.
CFeeRate GetRequiredFeeRate(const CWallet &wallet)
Return the minimum required feerate taking into account the minimum relay feerate and user set minimu...
unsigned int m_confirm_target
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Fee rate in satoshis per kilobyte: CAmount / kB.
virtual unsigned int estimateMaxBlocks()=0
Fee estimator max target.
FeeEstimateMode m_fee_mode
Fee estimation mode to control arguments to estimateSmartFee.
CAmount GetRequiredFee(const CWallet &wallet, unsigned int nTxBytes)
Return the minimum required absolute fee for this size based on the required fee rate.
Optional< CFeeRate > m_feerate
Override the wallet's m_pay_tx_fee if set.
virtual CFeeRate relayMinFee()=0
Relay current minimum fee (from -minrelaytxfee and -incrementalrelayfee settings).
CAmount GetFee(size_t nBytes) const
Return the fee in satoshis for the given size in bytes.