aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/client.cpp
diff options
context:
space:
mode:
authorKostiantyn Stepaniuk <[email protected]>2018-08-20 14:19:43 +0200
committerKostiantyn Stepaniuk <[email protected]>2018-08-20 15:19:12 +0200
commitd9d79576f423cd9c5cef4547c7e3648dbb339460 (patch)
tree0ccd7b4a0425a6c10962769172852106bbde7230 /src/rpc/client.cpp
parentMerge #13248: [gui] Make proxy icon from statusbar clickable (diff)
downloaddiscoin-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/client.cpp')
-rw-r--r--src/rpc/client.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp
index 6738b206c..7fb8eb925 100644
--- a/src/rpc/client.cpp
+++ b/src/rpc/client.cpp
@@ -18,6 +18,7 @@ public:
std::string paramName; //!< parameter name
};
+// clang-format off
/**
* Specify a (method, idx, name) here if the argument is a non-string RPC
* argument and needs to be converted from JSON.
@@ -174,6 +175,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "rescanblockchain", 1, "stop_height"},
{ "createwallet", 1, "disable_private_keys"},
};
+// clang-format on
class CRPCConvertTable
{