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

Function RPCConvertValues

src/rpc/client.cpp:441–450  ·  view source on GitHub ↗

* Convert command lines arguments to params object when -named is disabled. */

Source from the content-addressed store, hash-verified

439 * Convert command lines arguments to params object when -named is disabled.
440 */
441UniValue RPCConvertValues(const std::string &strMethod, const std::vector<std::string> &strParams)
442{
443 UniValue params(UniValue::VARR);
444
445 for (std::string_view s : strParams) {
446 params.push_back(ParseParam(rpc_convert::FromPosition(strMethod, params.size()), s));
447 }
448
449 return params;
450}
451
452/**
453 * Convert command line arguments to params object when -named is enabled.

Callers 7

PrepareRequestMethod · 0.85
PrepareRequestMethod · 0.85
CallRPCMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
CallRPCMethod · 0.85
FUZZ_TARGETFunction · 0.85
RPCParseCommandLineMethod · 0.85

Calls 4

ParseParamFunction · 0.85
FromPositionFunction · 0.85
push_backMethod · 0.45
sizeMethod · 0.45

Tested by 4

CallRPCMethod · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
CallRPCMethod · 0.68
FUZZ_TARGETFunction · 0.68