-
Notifications
You must be signed in to change notification settings - Fork 968
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: Bootstrap from previously seen peers #2133
Feat: Bootstrap from previously seen peers #2133
Conversation
0c8648b
to
a4b05a5
Compare
278ed09
to
0080204
Compare
… bootstrap from previously seen peers
0080204
to
6a68df9
Compare
…m:derrandz/celestia-node into feat/bootstrap-from-previously-seen-peers
go.mod
Outdated
@@ -4,6 +4,8 @@ go 1.20 | |||
|
|||
replace github.com/ipfs/go-verifcid => github.com/celestiaorg/go-verifcid v0.0.1-lazypatch | |||
|
|||
replace github.com/celestiaorg/go-header => github.com/derrandz/go-header v0.0.0-20230428151923-2da10fd92f76 |
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.
This is temporary, you can ignore
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.
@derrandz convert to draft please - this has goheader dep pointing at your local
It can only be marked ready for review once your PRs on go-header are merged.
Provides `PIDStore` to header module so that it can be used in `peerTracker` and replaces mem `peerstore.Peerstore` with on-disk `peerstore.Peerstore` so that `peerTracker` 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.
superseded by #2507 |
Overview
This PR contains the imlpementation of ADR-14
Depends on:
Checklist