5#ifndef BITCOIN_UTIL_FEES_H
6#define BITCOIN_UTIL_FEES_H
89 return result ? *result : result.error().estimation;
Wrapper around FeeFrac & derived types, which adds a feerate-based ordering which treats equal-feerat...
The util::Expected class provides a standard way for low-level functions to return either error value...
The util::Unexpected class represents an unexpected value stored in util::Expected.
A failed fee rate estimation, carrying the zero-value estimation that identifies the estimator and ta...
FeeRateEstimation estimation
A successful fee rate estimate returned by a fee rate estimator.
FeeRateEstimatorType feerate_estimator
This identifies which fee rate estimator is providing this feerate estimate.
auto operator<=>(const FeeRateEstimation &other) const
Compare two FeeRateEstimation objects based on fee rate.
FeePerVSize feerate
Fee rate sufficient for confirmation within target.
int returned_target
The returned confirmation target for the estimate.
util::Unexpected< FeeRateEstimationError > EstimationError(FeeRateEstimatorType estimator, int returned_target, std::string error)
Build a fee rate estimation error result: a zero-value estimation identifying the estimator and targe...
std::string_view FeeRateEstimatorTypeToString(FeeRateEstimatorType feerate_estimator_type)
FeeRateEstimatorType FeeRateEstimatorTypeFromString(std::string_view feerate_estimator_type)
FeeRateEstimatorType
Identifier for fee rate estimator.
const FeeRateEstimation & FeeRateEstimationRef(const util::Expected< FeeRateEstimation, FeeRateEstimationError > &result LIFETIMEBOUND)
Return the estimation carried by a fee rate estimate result: the successful estimation,...
@ ECONOMICAL
Force Fee rate estimator to return non-conservative estimates.