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

Function FromPosition

src/rpc/client.cpp:413–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411namespace rpc_convert
412{
413const CRPCConvertParam* FromPosition(std::string_view method, size_t pos)
414{
415 auto it = std::ranges::find_if(vRPCConvertParams, [&](const auto& p) {
416 return p.methodName == method && p.paramIdx == static_cast<int>(pos);
417 });
418
419 return it == std::end(vRPCConvertParams) ? nullptr : &*it;
420}
421
422const CRPCConvertParam* FromName(std::string_view method, std::string_view name)
423{

Callers 2

RPCConvertValuesFunction · 0.85
RPCConvertNamedValuesFunction · 0.85

Calls 1

endFunction · 0.85

Tested by

no test coverage detected