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

feat(lib/grandpa): Add warp sync provider #4187

Merged
merged 21 commits into from
Oct 2, 2024

Conversation

dimartiro
Copy link
Contributor

@dimartiro dimartiro commented Sep 18, 2024

Changes

Adds warp sync provider to generate warp sync proofs as part of lib/grandpa

  • Modify database.Table to implement NewPrefixIterator method
  • Create isolated BlockState and GrandpaState interface with the required methods
  • Implement warp sync proof generation
  • Tests

Tests

make test

Issues

closes: #4053

@dimartiro dimartiro changed the title [WIP] feat(lib/grandpa): Add warp sync provider feat(lib/grandpa): Add warp sync provider Sep 23, 2024
@dimartiro dimartiro marked this pull request as ready for review September 26, 2024 02:16
@dimartiro dimartiro force-pushed the diego/warp-sync-provider branch 2 times, most recently from 2539107 to 1a250c6 Compare September 26, 2024 14:24
dot/state/grandpa.go Outdated Show resolved Hide resolved
dot/state/grandpa.go Outdated Show resolved Hide resolved
internal/client/consensus/grandpa/warp_sync.go Outdated Show resolved Hide resolved
internal/client/consensus/grandpa/warp_sync.go Outdated Show resolved Hide resolved
Copy link
Contributor

@jimjbrettj jimjbrettj left a comment

Choose a reason for hiding this comment

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

Few comments, but overall really nice work!

@dimartiro dimartiro force-pushed the diego/warp-sync-provider branch 3 times, most recently from 1edb73b to c78830d Compare October 1, 2024 15:18
Copy link
Contributor

@jimjbrettj jimjbrettj left a comment

Choose a reason for hiding this comment

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

Really great work here!

Copy link
Member

@EclesioMeloJunior EclesioMeloJunior left a comment

Choose a reason for hiding this comment

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

LGTM! Great work @dimartiro!

@dimartiro dimartiro merged commit 6a833fd into development Oct 2, 2024
24 checks passed
@dimartiro dimartiro deleted the diego/warp-sync-provider branch October 2, 2024 14:30
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.

Implement warp sync provider
4 participants