MCPcopy Create free account
hub / github.com/ElementsProject/elements / CallRPC

Method CallRPC

src/test/fuzz/rpc.cpp:44–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 void CallRPC(const std::string& rpc_method, const std::vector<std::string>& arguments)
45 {
46 JSONRPCRequest request;
47 request.context = &m_node;
48 request.strMethod = rpc_method;
49 try {
50 request.params = RPCConvertValues(rpc_method, arguments);
51 } catch (const std::runtime_error&) {
52 return;
53 }
54 tableRPC.execute(request);
55 }
56
57 std::vector<std::string> GetRPCCommands() const
58 {

Callers 1

FUZZ_TARGET_INITFunction · 0.45

Calls 2

RPCConvertValuesFunction · 0.85
executeMethod · 0.45

Tested by

no test coverage detected