Page MenuHomePhabricator

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

Authored by tobias_ruck on May 3 2023, 22:43.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Rebase on chronik-refactor-hashorheight

PiRK added inline comments.
chronik/chronik-indexer/src/query/blocks.rs
88 ↗(On Diff #40197)
This revision is now accepted and ready to land.May 4 2023, 12:29