common::FeeModeFromString

Parse a fee estimate mode from its string name.

Synopsis

Declared in <common/messages.h>

bool
FeeModeFromString(
    std::string_view mode_string,
    FeeEstimateMode& fee_estimate_mode);

Return Value

true if the string named a valid mode.

Parameters

NameDescription
mode_stringThe mode name to parse (case-insensitive).
fee_estimate_modeSet to the parsed mode on success.