aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/mining.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-03-13 14:40:53 -0400
committerMarcoFalke <falke.marco@gmail.com>2020-03-13 15:36:15 -0400
commitfac52253f81a4f0d04b25eb4b6c28d04b85ef10b (patch)
treee3993df152dc5f417cbe85375e903e125a0bae34 /src/rpc/mining.cpp
parentfadd99f61032c0b75ad9b198eb5d8e307b0518ee (diff)
downloadbitcoin-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.cpp2
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\"")