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

Function FeeModeFromString

src/policy/fees.cpp:50–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50bool FeeModeFromString(const std::string& mode_string, FeeEstimateMode& fee_estimate_mode) {
51 static const std::map<std::string, FeeEstimateMode> fee_modes = {
52 {"UNSET", FeeEstimateMode::UNSET},
53 {"ECONOMICAL", FeeEstimateMode::ECONOMICAL},
54 {"CONSERVATIVE", FeeEstimateMode::CONSERVATIVE},
55 };
56 auto mode = fee_modes.find(mode_string);
57
58 if (mode == fee_modes.end()) return false;
59
60 fee_estimate_mode = mode->second;
61 return true;
62}
63
64/**
65 * We will instantiate an instance of this class to track transactions that were

Callers 5

sendtoaddressFunction · 0.85
sendmanyFunction · 0.85
FundTransactionFunction · 0.85
bumpfeeFunction · 0.85
estimatesmartfeeFunction · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected