mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
rpc: Document an RPCResult for all calls; Enforce at compile time
This commit is contained in:
parent
fadd99f610
commit
fac52253f8
8 changed files with 46 additions and 41 deletions
|
|
@ -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\"")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue