Add documentation for hardfork

This commit is contained in:
Pedro Pinheiro
2016-02-24 18:36:59 +00:00
parent 839f1fa4ea
commit 51d83aa4c9

View File

@@ -679,6 +679,20 @@ UniValue getblockchaininfo(const UniValue& params, bool fHelp)
" \"reject\": { ... } (object) progress toward rejecting pre-softfork blocks (same fields as \"enforce\")\n"
" }, ...\n"
" ]\n"
" \"hardforks\": [ (array) status of hardforks in progress\n"
" {\n"
" \"id\": \"xxxx\", (string) name of hardfork\n"
" \"version\": xx, (numeric) block version\n"
" \"status\": { (object) status of the hardfork\n"
" \"triggeredatblock\": \"xx\", (string) hash for the block where triggering conditions were met\n"
" \"earliestforktime\": xx, (numeric) lowest timestamp (seconds since Epoch) for which new blocks will be accepted \n"
" \"found\": xx, (numeric) number of blocks with the new version found\n"
" \"required\": xx, (numeric) number of blocks required to trigger\n"
" \"window\": xx, (numeric) maximum size of examined window of recent blocks\n"
" },\n"
" \"reject\": { ... } (object) progress toward rejecting pre-softfork blocks (same fields as \"enforce\")\n"
" }, ...\n"
" ]\n"
"}\n"
"\nExamples:\n"
+ HelpExampleCli("getblockchaininfo", "")