EstimationError

Build a fee rate estimation error result: a zero-value estimation identifying the estimator and target, alongside the error message.

Synopsis

Declared in <util/fees.h>

util::Unexpected<FeeRateEstimationError>
EstimationError(
    FeeRateEstimatorType estimator,
    int returned_target,
    std::string error);

Return Value

An unexpected result wrapping the estimator, target, and error.

Parameters

NameDescription
estimatorThe estimator that produced the error.
returned_targetThe confirmation target associated with the failed estimate.
errorThe error message describing the failure.