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

Header-only data source #738

Open
jbearer opened this issue Nov 17, 2024 · 0 comments
Open

Header-only data source #738

jbearer opened this issue Nov 17, 2024 · 0 comments
Assignees

Comments

@jbearer
Copy link
Member

jbearer commented Nov 17, 2024

For lightweight nodes, it use useful to be able to store and provide headers (or leaves), but never store payloads and other large stuff, and not worry about fetching anything we don't already have (since consensus guarantees that some lightweight nodes have every leaf, and the query service guarantees that an archival node will eventually get it as long as someone has it).

Add a LeafOnlyDataSource which wraps an AvailabilityStorage + NodeStorage in the same way as FetchingDataSource, but LeafOnlyDataSource

  • never fetches anything
  • completely ignores all objects other than leaves
@imabdulbasit imabdulbasit self-assigned this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants