mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge pull request #7194
135d6ecAdd RPC tests for getblockheader. (James O'Beirne)4745636Add RPC documentation for getblockheader[chainwork]. (James O'Beirne)16d4fceAdd assert_is_hex_string and assert_is_hash_string to RPC test utils. (James O'Beirne)
This commit is contained in:
commit
e4e77ee55d
3 changed files with 54 additions and 2 deletions
|
|
@ -323,7 +323,8 @@ UniValue getblockheader(const UniValue& params, bool fHelp)
|
|||
" \"bits\" : \"1d00ffff\", (string) The bits\n"
|
||||
" \"difficulty\" : x.xxx, (numeric) The difficulty\n"
|
||||
" \"previousblockhash\" : \"hash\", (string) The hash of the previous block\n"
|
||||
" \"nextblockhash\" : \"hash\" (string) The hash of the next block\n"
|
||||
" \"nextblockhash\" : \"hash\", (string) The hash of the next block\n"
|
||||
" \"chainwork\" : \"0000...1f3\" (string) Expected number of hashes required to produce the current chain (in hex)\n"
|
||||
"}\n"
|
||||
"\nResult (for verbose=false):\n"
|
||||
"\"data\" (string) A string that is serialized, hex-encoded data for block 'hash'.\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue