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(dot/network): Add warp sync request handler #4186

Merged
merged 21 commits into from
Sep 25, 2024

Conversation

dimartiro
Copy link
Contributor

@dimartiro dimartiro commented Sep 18, 2024

Changes

Adds warp sync request handler.

  • Register warp sync handler at /sync/warp
  • Added request message encoding / decoding
  • Add handler to respond to warp sync requests
  • tests

This implementation is slightly different from the one proposed in #4052, but I think it's more straightforward and less complex, which will help us achieve a quick warp sync implementation. We can discuss or revisit this later.

Tests

go test ./dot/network

Issues

closing: #4052

@dimartiro dimartiro self-assigned this Sep 18, 2024
@dimartiro dimartiro linked an issue Sep 18, 2024 that may be closed by this pull request
3 tasks
@dimartiro dimartiro changed the base branch from eclesio/sync-strategy to development September 18, 2024 19:23
dot/network/service.go Outdated Show resolved Hide resolved
dot/network/warp_sync.go Outdated Show resolved Hide resolved
dot/network/warp_sync.go Outdated Show resolved Hide resolved
dot/network/warp_sync.go Show resolved Hide resolved
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

dot/network/service.go Outdated Show resolved Hide resolved
dot/network/config.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.

Small questions/comments, but overall great work and LGTM!

@dimartiro dimartiro merged commit 2fdf95a into development Sep 25, 2024
24 checks passed
@dimartiro dimartiro deleted the diego/warp-sync-req_handler branch September 25, 2024 00:58
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 request handler
3 participants