| 420 | } |
| 421 | |
| 422 | const 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 | |
| 432 | static UniValue ParseParam(const CRPCConvertParam* param, std::string_view raw) |
no test coverage detected