Page MenuHomePhabricator

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

Authored by PiRK on Apr 12 2022, 13:40.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC77d52b9d3c39: 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