-
Notifications
You must be signed in to change notification settings - Fork 925
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(nodebuilder/header): Bootstrap from previously seen peers #2507
Merged
Conversation
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 is what it looks like to bootstrap from previously-seen peers:
|
renaynay
force-pushed
the
bootstrap-prev-seen
branch
from
August 11, 2023 09:08
4e8e827
to
3aa19a9
Compare
Blocked on release from go-header |
renaynay
force-pushed
the
bootstrap-prev-seen
branch
from
September 5, 2023 08:54
3aa19a9
to
2712e73
Compare
Codecov Report
@@ Coverage Diff @@
## main #2507 +/- ##
==========================================
+ Coverage 51.00% 51.02% +0.02%
==========================================
Files 158 158
Lines 10644 10657 +13
==========================================
+ Hits 5429 5438 +9
- Misses 4738 4740 +2
- Partials 477 479 +2
|
renaynay
requested review from
Wondertan,
vgonkivs,
distractedm1nd and
walldiss
as code owners
September 5, 2023 12:58
renaynay
force-pushed
the
bootstrap-prev-seen
branch
from
September 5, 2023 13:28
4eb787e
to
7e84dc1
Compare
Wondertan
reviewed
Sep 5, 2023
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.
help me
The help brigade is OOO
Wondertan
approved these changes
Sep 5, 2023
vgonkivs
reviewed
Sep 5, 2023
vgonkivs
approved these changes
Sep 5, 2023
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Provides
PIDStore
to header module so that it can be used inpeerTracker
and replaces mempeerstore.Peerstore
with on-diskpeerstore.Peerstore
so thatpeerTracker
can quickly bootstrap itself with previously-seen peers and allow syncer to initialise its sync target from tracked peers rather than trusted so long as it has a subjective head within the trusting period.Overrides #2133
Closes #1851, mitigates issues resulting from #1623
Swamp integration tests to follow (tracked in #2506)
Future note:
This PR introduces a soon-to-be deprecated feature from libp2p (on-disk peerstore). Once libp2p deprecates and removes this feature, the PIDStore will have to become a PeerAddrStore such that it can save addr info of good peers to disk instead of just their IDs.