diff options
author | Kostiantyn Stepaniuk <kostya.stepanyuk@gmail.com> | 2018-08-20 14:19:43 +0200 |
---|---|---|
committer | Kostiantyn Stepaniuk <kostya.stepanyuk@gmail.com> | 2018-08-20 15:19:12 +0200 |
commit | d9d79576f423cd9c5cef4547c7e3648dbb339460 (patch) | |
tree | 0ccd7b4a0425a6c10962769172852106bbde7230 /src/rpc/blockchain.cpp | |
parent | 2a583406c00761c0ac1d162531256b401d5b16c3 (diff) | |
download | bitcoin-d9d79576f423cd9c5cef4547c7e3648dbb339460.tar.xz |
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/blockchain.cpp')
-rw-r--r-- | src/rpc/blockchain.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 51bc218d39..9bc955542f 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -2179,6 +2179,7 @@ UniValue scantxoutset(const JSONRPCRequest& request) return result; } +// clang-format off static const CRPCCommand commands[] = { // category name actor (function) argNames // --------------------- ------------------------ ----------------------- ---------- @@ -2214,6 +2215,7 @@ static const CRPCCommand commands[] = { "hidden", "waitforblockheight", &waitforblockheight, {"height","timeout"} }, { "hidden", "syncwithvalidationinterfacequeue", &syncwithvalidationinterfacequeue, {} }, }; +// clang-format on void RegisterBlockchainRPCCommands(CRPCTable &t) { |