HomePhabricator

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

Description

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

Summary:
Affects the following RPCs:

  • getblockheader
  • getblock

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

This is a backport of core#21053

Test Plan: ninja check-functional

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D11336

Details

Provenance
Sebastian Falbesoner <sebastian.falbesoner@gmail.com>Authored on Jan 29 2021, 00:07
PiRKCommitted on Apr 13 2022, 18:18
PiRKPushed on Apr 13 2022, 18:18
Reviewer
Restricted Project
Differential Revision
D11336: rpc, test: document {previous,next}blockhash as optional
Parents
rABC184ba16e70b1: Deduplicate some block-to-JSON code.
Branches
Unknown
Tags
Unknown