mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge #14008: Preserve a format of RPC command definitions
d9d79576f4 Preserve a format of RPC command definitions (Kostiantyn Stepaniuk)
Pull request description:
Currently, RPC commands are formatted in a way that it's easy to read
and that `test/lint/check-rpc-mappings.py` can parse it.
To void breaking `test/lint/check-rpc-mappings.py` script by running
`clang-format`, RPC command definitions should be disabled for clang-format.
Tree-SHA512: e17d20ec0e6c4e19410198b55687ebbe6fa01654d214d4578cd16c00b872bf8b0b306594a45523685cd2e9d9280702e00471d9366e87954428e8bbeacd8cad60
This commit is contained in:
commit
838b85e120
9 changed files with 18 additions and 2 deletions
|
|
@ -252,6 +252,7 @@ static UniValue uptime(const JSONRPCRequest& jsonRequest)
|
|||
return GetTime() - GetStartupTime();
|
||||
}
|
||||
|
||||
// clang-format off
|
||||
/**
|
||||
* Call Table
|
||||
*/
|
||||
|
|
@ -263,6 +264,7 @@ static const CRPCCommand vRPCCommands[] =
|
|||
{ "control", "stop", &stop, {} },
|
||||
{ "control", "uptime", &uptime, {} },
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
CRPCTable::CRPCTable()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue