rpc, test: document {previous,next}blockhash as optional #21053

pull theStack wants to merge 1 commits into bitcoin:master from theStack:2021-rpc-test-document-previousnextblockhash-as-optional changing 2 files +10 −4
  1. theStack commented at 4:45 PM on February 1, 2021: member

    This PR updates the result help of the following RPCs w.r.t. the previousblockhash and nextblockhash fields:

    • getblockheader
    • getblock

    Also adds trivial tests on genesis block (should not contain "previousblockhash") and best block (should not contain "nextblockhash").

  2. rpc, test: document {previous,next}blockhash as optional
    Affects the following RPCs:
    - getblockheader
    - getblock
    
    Also adds trivial tests on genesis block (should not contain
    "previousblockhash") and best block (should not contain
    "nextblockhash").
    ba7e17e073
  3. fanquake added the label RPC/REST/ZMQ on Feb 1, 2021
  4. jonatack commented at 7:43 PM on February 1, 2021: member

    utACK. I see happy path tests for "previousblockhash"; are we missing the same for "nextblockhash"?

  5. luke-jr approved
  6. luke-jr commented at 5:05 PM on February 23, 2021: member

    utACK

  7. MarcoFalke merged this on Feb 23, 2021
  8. MarcoFalke closed this on Feb 23, 2021

  9. sidhujag referenced this in commit d3c053b9ba on Feb 23, 2021
  10. Fabcien referenced this in commit 77d52b9d3c on Apr 13, 2022
  11. DrahtBot locked this on Aug 16, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me