diff options
| author | Kostiantyn Stepaniuk <[email protected]> | 2018-08-20 14:19:43 +0200 |
|---|---|---|
| committer | Kostiantyn Stepaniuk <[email protected]> | 2018-08-20 15:19:12 +0200 |
| commit | d9d79576f423cd9c5cef4547c7e3648dbb339460 (patch) | |
| tree | 0ccd7b4a0425a6c10962769172852106bbde7230 /src/rpc/net.cpp | |
| parent | Merge #13248: [gui] Make proxy icon from statusbar clickable (diff) | |
| download | discoin-d9d79576f423cd9c5cef4547c7e3648dbb339460.tar.xz discoin-d9d79576f423cd9c5cef4547c7e3648dbb339460.zip | |
Preserve a format of RPC command definitions
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.
Diffstat (limited to 'src/rpc/net.cpp')
| -rw-r--r-- | src/rpc/net.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 610a1fee6..c6efb63d6 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -624,6 +624,7 @@ static UniValue setnetworkactive(const JSONRPCRequest& request) return g_connman->GetNetworkActive(); } +// clang-format off static const CRPCCommand commands[] = { // category name actor (function) argNames // --------------------- ------------------------ ----------------------- ---------- @@ -640,6 +641,7 @@ static const CRPCCommand commands[] = { "network", "clearbanned", &clearbanned, {} }, { "network", "setnetworkactive", &setnetworkactive, {"state"} }, }; +// clang-format on void RegisterNetRPCCommands(CRPCTable &t) { |