Remove not needed clang-format off comments

Can be reviewed with --word-diff-regex=. --ignore-all-space
This commit is contained in:
MarcoFalke
2022-04-24 16:44:35 +02:00
parent b1c5991eeb
commit fa870e3d4c
11 changed files with 175 additions and 221 deletions

View File

@@ -959,30 +959,25 @@ static RPCHelpMan addpeeraddress()
};
}
void RegisterNetRPCCommands(CRPCTable &t)
void RegisterNetRPCCommands(CRPCTable& t)
{
// clang-format off
static const CRPCCommand commands[] =
{ // category actor
// --------------------- -----------------------
{ "network", &getconnectioncount, },
{ "network", &ping, },
{ "network", &getpeerinfo, },
{ "network", &addnode, },
{ "network", &disconnectnode, },
{ "network", &getaddednodeinfo, },
{ "network", &getnettotals, },
{ "network", &getnetworkinfo, },
{ "network", &setban, },
{ "network", &listbanned, },
{ "network", &clearbanned, },
{ "network", &setnetworkactive, },
{ "network", &getnodeaddresses, },
{ "hidden", &addconnection, },
{ "hidden", &addpeeraddress, },
};
// clang-format on
static const CRPCCommand commands[]{
{"network", &getconnectioncount},
{"network", &ping},
{"network", &getpeerinfo},
{"network", &addnode},
{"network", &disconnectnode},
{"network", &getaddednodeinfo},
{"network", &getnettotals},
{"network", &getnetworkinfo},
{"network", &setban},
{"network", &listbanned},
{"network", &clearbanned},
{"network", &setnetworkactive},
{"network", &getnodeaddresses},
{"hidden", &addconnection},
{"hidden", &addpeeraddress},
};
for (const auto& c : commands) {
t.appendCommand(c.name, &c);
}