HomePhabricator

[chronik] add a block-header endpoint

Description

[chronik] add a block-header endpoint

Summary:
Fetch the header directly from the in-memory block index.

For now only the raw header data is returned. In a future diff I plan to add a cp_height query parameter that causes the endpoint to also return the checkpoint's merkle tree data (similar to how electrumx does it).

Test Plan:
With chronik
ninja all check-all

Reviewers: #bitcoin_abc, Fabien, tobias_ruck

Reviewed By: #bitcoin_abc, Fabien, tobias_ruck

Subscribers: tobias_ruck, Fabien

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

Details

Provenance
PiRKAuthored on Jul 11 2024, 15:32
PiRKPushed on Aug 1 2024, 19:13
Reviewer
Restricted Project
Differential Revision
D16508: [chronik] add a block-header endpoint
Parents
rABCc0eba5d32d58: [Chronik] Add `/plugin/:plugin_name/groups` HTTP endpoint
Branches
Unknown
Tags
Unknown