Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ranged block reads #491

Open
Tracked by #396
mattp-swirldslabs opened this issue Jan 14, 2025 · 0 comments
Open
Tracked by #396

Ranged block reads #491

mattp-swirldslabs opened this issue Jan 14, 2025 · 0 comments
Labels
Block Node Issues/PR related to the Block Node. New Feature A new feature, service, or documentation. Major changes that are not backwards compatible. Phase 2 Issue/PR related to Phase 2

Comments

@mattp-swirldslabs
Copy link
Contributor

mattp-swirldslabs commented Jan 14, 2025

As part of the Streaming Historic Blocks story
I want to be able to read a range of blocks from the persistence service
So that I can more efficiently fetch a sequence of blocks

Tech notes

  • This is needed by: EPIC: Consumer to stream blocks from a specified block number #368
  • If the range requested does not exactly map to the available blocks, it would be nice for the List<Block> read(long startBlockNumber, long endBlockNumber) method to respond with what it can find in the range. So, requested: 1 - 10 blocks but available: 1 - 5 then return a list with 1 - 5
  • If no blocks are found in the range, return an empty list rather than null or an error.
@mattp-swirldslabs mattp-swirldslabs added Block Node Issues/PR related to the Block Node. New Feature A new feature, service, or documentation. Major changes that are not backwards compatible. Phase 2 Issue/PR related to Phase 2 labels Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Block Node Issues/PR related to the Block Node. New Feature A new feature, service, or documentation. Major changes that are not backwards compatible. Phase 2 Issue/PR related to Phase 2
Projects
None yet
Development

No branches or pull requests

1 participant