| 960 | } |
| 961 | |
| 962 | void RegisterNetRPCCommands(CRPCTable &t) |
| 963 | { |
| 964 | // clang-format off |
| 965 | static 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 | } |
no test coverage detected