mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-14 01:27:24 +02:00
Remove not needed clang-format off comments
Can be reviewed with --word-diff-regex=. --ignore-all-space
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user