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

@@ -1249,30 +1249,25 @@ static RPCHelpMan estimaterawfee()
};
}
void RegisterMiningRPCCommands(CRPCTable &t)
void RegisterMiningRPCCommands(CRPCTable& t)
{
// clang-format off
static const CRPCCommand commands[] =
{ // category actor (function)
// --------------------- -----------------------
{ "mining", &getnetworkhashps, },
{ "mining", &getmininginfo, },
{ "mining", &prioritisetransaction, },
{ "mining", &getblocktemplate, },
{ "mining", &submitblock, },
{ "mining", &submitheader, },
static const CRPCCommand commands[]{
{"mining", &getnetworkhashps},
{"mining", &getmininginfo},
{"mining", &prioritisetransaction},
{"mining", &getblocktemplate},
{"mining", &submitblock},
{"mining", &submitheader},
{"hidden", &generatetoaddress},
{"hidden", &generatetodescriptor},
{"hidden", &generateblock},
{ "hidden", &generatetoaddress, },
{ "hidden", &generatetodescriptor, },
{ "hidden", &generateblock, },
{"util", &estimatesmartfee},
{ "util", &estimatesmartfee, },
{ "hidden", &estimaterawfee, },
{ "hidden", &generate, },
};
// clang-format on
{"hidden", &estimaterawfee},
{"hidden", &generate},
};
for (const auto& c : commands) {
t.appendCommand(c.name, &c);
}