MCPcopy Create free account
hub / github.com/ElementsProject/elements / FeeModeFromString

Function FeeModeFromString

src/util/fees.cpp:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57bool FeeModeFromString(const std::string& mode_string, FeeEstimateMode& fee_estimate_mode)
58{
59 auto searchkey = ToUpper(mode_string);
60 for (const auto& pair : FeeModeMap()) {
61 if (ToUpper(pair.first) == searchkey) {
62 fee_estimate_mode = pair.second;
63 return true;
64 }
65 }
66 return false;
67}

Callers 3

SetFeeEstimateModeFunction · 0.85
FUZZ_TARGETFunction · 0.85
estimatesmartfeeFunction · 0.85

Calls 1

ToUpperFunction · 0.70

Tested by 1

FUZZ_TARGETFunction · 0.68