diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-03-13 14:40:53 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-03-13 15:36:15 -0400 |
commit | fac52253f81a4f0d04b25eb4b6c28d04b85ef10b (patch) | |
tree | e3993df152dc5f417cbe85375e903e125a0bae34 /src/rpc/mining.cpp | |
parent | fadd99f61032c0b75ad9b198eb5d8e307b0518ee (diff) | |
download | bitcoin-fac52253f81a4f0d04b25eb4b6c28d04b85ef10b.tar.xz |
rpc: Document an RPCResult for all calls; Enforce at compile time
Diffstat (limited to 'src/rpc/mining.cpp')
-rw-r--r-- | src/rpc/mining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 92440488a4..1bbb5c4bee 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -751,7 +751,7 @@ static UniValue submitblock(const JSONRPCRequest& request) {"hexdata", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "the hex-encoded block data to submit"}, {"dummy", RPCArg::Type::STR, /* default */ "ignored", "dummy value, for compatibility with BIP22. This value is ignored."}, }, - RPCResults{}, + RPCResult{RPCResult::Type::NONE, "", "Returns JSON Null when valid, a string according to BIP22 otherwise"}, RPCExamples{ HelpExampleCli("submitblock", "\"mydata\"") + HelpExampleRpc("submitblock", "\"mydata\"") |