Auto merge of #2157 - arcalinea:1652_submitblock_documentation, r=daira
Document returned results of submitblock documentation for #1652
This commit is contained in:
@@ -762,6 +762,12 @@ UniValue submitblock(const UniValue& params, bool fHelp)
|
|||||||
" \"workid\" : \"id\" (string, optional) if the server provided a workid, it MUST be included with submissions\n"
|
" \"workid\" : \"id\" (string, optional) if the server provided a workid, it MUST be included with submissions\n"
|
||||||
" }\n"
|
" }\n"
|
||||||
"\nResult:\n"
|
"\nResult:\n"
|
||||||
|
"\"duplicate\" - node already has valid copy of block\n"
|
||||||
|
"\"duplicate-invalid\" - node already has block, but it is invalid\n"
|
||||||
|
"\"duplicate-inconclusive\" - node already has block but has not validated it\n"
|
||||||
|
"\"inconclusive\" - node has not validated the block, it may not be on the node's current best chain\n"
|
||||||
|
"\"rejected\" - block was rejected as invalid\n"
|
||||||
|
"For more information on submitblock parameters and results, see: https://github.com/bitcoin/bips/blob/master/bip-0022.mediawiki#block-submission\n"
|
||||||
"\nExamples:\n"
|
"\nExamples:\n"
|
||||||
+ HelpExampleCli("submitblock", "\"mydata\"")
|
+ HelpExampleCli("submitblock", "\"mydata\"")
|
||||||
+ HelpExampleRpc("submitblock", "\"mydata\"")
|
+ HelpExampleRpc("submitblock", "\"mydata\"")
|
||||||
|
|||||||
Reference in New Issue
Block a user