HomePhabricator

[Chronik] Add `/block-txs/:hash_or_height` HTTP endpoint

Description

[Chronik] Add /block-txs/:hash_or_height HTTP endpoint

Summary:
Allows querying the txs of a block in paginated fashion.

The NNG Chronik returned these as part of the Block protobuf message, but it now is clear that this poses a DoS vector for larger blocks.

Depends on D13857.

Test Plan: ninja && ./test/functional/test_runner.py chronik_block_txs

Reviewers: Fabien, #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: PiRK

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

Details

Provenance
tobias_ruckAuthored on May 3 2023, 22:36
tobias_ruckPushed on May 5 2023, 06:53
Reviewer
Restricted Project
Differential Revision
D13858: [Chronik] Add `/block-txs/:hash_or_height` HTTP endpoint
Parents
rABCf187d27d4ec5: [Chronik] Refactor: Add `HashOrHeight` enum
Branches
Unknown
Tags
Unknown