MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / FeeModeFromString

Function FeeModeFromString

src/common/messages.cpp:92–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92bool FeeModeFromString(std::string_view mode_string, FeeEstimateMode& fee_estimate_mode)
93{
94 auto searchkey = ToUpper(mode_string);
95 for (const auto& pair : FeeModeMap()) {
96 if (ToUpper(pair.first) == searchkey) {
97 fee_estimate_mode = pair.second;
98 return true;
99 }
100 }
101 return false;
102}
103
104bilingual_str PSBTErrorString(PSBTError err)
105{

Callers 3

SetFeeEstimateModeFunction · 0.85
FUZZ_TARGETFunction · 0.85
estimatesmartfeeFunction · 0.85

Calls 1

ToUpperFunction · 0.50

Tested by 1

FUZZ_TARGETFunction · 0.68