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

Function RegisterNetRPCCommands

src/rpc/net.cpp:962–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

960}
961
962void RegisterNetRPCCommands(CRPCTable &t)
963{
964// clang-format off
965static const CRPCCommand commands[] =
966{ // category actor
967 // --------------------- -----------------------
968 { "network", &getconnectioncount, },
969 { "network", &ping, },
970 { "network", &getpeerinfo, },
971 { "network", &addnode, },
972 { "network", &disconnectnode, },
973 { "network", &getaddednodeinfo, },
974 { "network", &getnettotals, },
975 { "network", &getnetworkinfo, },
976 { "network", &setban, },
977 { "network", &listbanned, },
978 { "network", &clearbanned, },
979 { "network", &setnetworkactive, },
980 { "network", &getnodeaddresses, },
981
982 { "hidden", &addconnection, },
983 { "hidden", &addpeeraddress, },
984};
985// clang-format on
986 for (const auto& c : commands) {
987 t.appendCommand(c.name, &c);
988 }
989}

Callers 1

Calls 1

appendCommandMethod · 0.80

Tested by

no test coverage detected