HomePhabricator

[chronik] add a block-headers endpoint

Description

[chronik] add a block-headers endpoint

Summary:
This adds another endpoint to fetch a range of block headers.

The behavior is the same as the "blocks" endpoint wrt boundary checks:

  • when the end height is more than the number of blocks in the active chain return less blocks than requested
  • require 0 <= start_height <= end_height
  • start_height and end_height are inclusive

Depends on D16508

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
PiRKAuthored on Jul 31 2024, 09:15
PiRKPushed on Aug 1 2024, 19:13
Reviewer
Restricted Project
Differential Revision
D16526: [chronik] add a block-headers endpoint
Parents
rABC32e93a4e2fb3: [chronik] add a block-header endpoint
Branches
Unknown
Tags
Unknown