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

Function FromName

src/rpc/client.cpp:422–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422const CRPCConvertParam* FromName(std::string_view method, std::string_view name)
423{
424 auto it = std::ranges::find_if(vRPCConvertParams, [&](const auto& p) {
425 return p.methodName == method && p.paramName == name;
426 });
427
428 return it == std::end(vRPCConvertParams) ? nullptr : &*it;
429}
430} // namespace rpc_convert
431
432static UniValue ParseParam(const CRPCConvertParam* param, std::string_view raw)

Callers 1

RPCConvertNamedValuesFunction · 0.85

Calls 1

endFunction · 0.85

Tested by

no test coverage detected