rpc: Document all aliases for second arg of getblock

This commit is contained in:
MarcoFalke 2020-04-12 17:09:23 -04:00
parent fa86a4bbfc
commit fa5b1f067f
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
4 changed files with 39 additions and 14 deletions

View file

@ -812,7 +812,7 @@ static UniValue getblock(const JSONRPCRequest& request)
"If verbosity is 2, returns an Object with information about block <hash> and information about each transaction. \n",
{
{"blockhash", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The block hash"},
{"verbosity", RPCArg::Type::NUM, /* default */ "1", "0 for hex-encoded data, 1 for a json object, and 2 for json object with transaction data"},
{"verbosity|verbose", RPCArg::Type::NUM, /* default */ "1", "0 for hex-encoded data, 1 for a json object, and 2 for json object with transaction data"},
},
{
RPCResult{"for verbosity = 0",