-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Rework p2p req resp protocol #11781
Open
anacrolix
wants to merge
50
commits into
develop
Choose a base branch
from
anacrolix/p2p-req-resp
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Rework p2p req resp protocol #11781
Changes from 49 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
81ce6bd
Herp
anacrolix 170f39f
Add test demonstrating inability to sync in reasonable time
anacrolix 4ed047e
Extreme test passes
anacrolix a897178
Trim just check output
anacrolix 7868a30
Pass payload source in L2PayloadIn
anacrolix af7761d
Improve debugging of peer efficiency
anacrolix 5c6b312
Maintain a single active range request
anacrolix 681ad9a
Fix active range request ID handling
anacrolix 02f7aff
Restore results chan for now
anacrolix 6fcb95d
Merge branch 'develop' into anacrolix/p2p-req-resp
anacrolix e4e5dd2
Everything stable
anacrolix 9969026
Fix TestMultiPeerSync
anacrolix d9c899e
Move SyncClient.mu closer to its fields
anacrolix 9e2baa5
Revert to go1.21
anacrolix bbd9877
go1.22...
anacrolix c850a51
Add just test-components
anacrolix 9cb665b
Expose P2P sync config
anacrolix 4788b58
Switch op-stack-go Dockerfile to go1.22
anacrolix ce688cd
Merge branch 'develop' into anacrolix/new-p2p-req-resp
anacrolix 6170149
Group sync client request state
anacrolix 690ee60
Retry promoted blocks that are requested again
anacrolix deac586
Merge remote-tracking branch 'origin/develop' into anacrolix/new-p2p-…
anacrolix c6dd233
Move all the new alt sync test code into a new file
anacrolix bdb4728
Tidy up comments
anacrolix 1f4f8a9
Handle the case where the range changes or next promote target change…
anacrolix 73964b6
Set anacrolix/{chansync,sync} tagged versions
anacrolix 25ad57e
go1.21 support
anacrolix 3c5bf67
Try to tap into the forkchoice update event to trigger alt sync
anacrolix 59cf37f
Merge branch 'develop' into anacrolix/p2p-req-resp
anacrolix e16d7e8
Merge branch 'develop' into anacrolix/p2p-req-resp
anacrolix 7f12b76
Fix lints
anacrolix 445f552
Reduce diff
anacrolix 3370816
Fixes with removed custom peer IDs
anacrolix 2f0d61a
lint
anacrolix 9316902
Remove stringly typed payload checks to avoid type mismatches in testify
anacrolix 41b6cb0
Tidy
anacrolix f6c5236
Tidy
anacrolix c5eefe1
Move peer ID into syncClientPeer
anacrolix ab05aa2
Disable stdout debugging
anacrolix fccd892
lint
anacrolix d7fbb3a
Put request reservation in another frame to simplify logic
anacrolix d35d700
Fix @tynes nits
anacrolix 8ae2217
Address the final hash unused I spotted with @seb
anacrolix aa9c491
Pass wanted from parent rather than looking it up again
anacrolix 0f2c725
Fix spotted race
anacrolix 45c5747
Limit quarantined payload count
anacrolix d620512
Merge remote-tracking branch 'origin/develop' into anacrolix/p2p-req-…
anacrolix 6b9af4e
Remove unnecessary docker change
anacrolix 598d0f0
Tidy up debug deps and unsigned wrapping
anacrolix cc64a80
lint
anacrolix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How important is it to use these packages? We need to be really sure when adding new packages to be certain there aren't backdoors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I definitely need chansync or I'd just end up duplicating all that again.
Some of the generic stuff is exceptionally useful for avoiding a lot of verbosity in Go.
The rest I was using for debugging.