Skip to content

Conversation

@jbearer
Copy link
Member

@jbearer jbearer commented Dec 16, 2025

See task

This PR does

  • Implement leaf fetching and verification for the light client
  • Support a local fixed size cache so we don't have to fetch the same leaves over and over again. The cache can be in memory or persisted in a file, either way we use a SQLite interface

This PR does not

  • Implement stake table fetching. Of course leaf verification requires a stake table. This PR just uses a fixed stake table always. The next task will be to support dynamic stake table fetching, which will depend on leaf verification (recursively)

@jbearer jbearer marked this pull request as ready for review December 17, 2025 23:15
@jbearer jbearer requested a review from Sneh1999 December 18, 2025 16:40
Copy link
Contributor

@Sneh1999 Sneh1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some nits but looks good! Thanks for all the comments in the code, helps me understand

Copy link
Contributor

@Sneh1999 Sneh1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jbearer jbearer merged commit 00cc85a into main Dec 19, 2025
149 of 151 checks passed
@jbearer jbearer deleted the jb/light-client-leaf-fetching branch December 19, 2025 16:54
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

Successfully merging this pull request may close these issues.

3 participants