Skip to content

node/config: add WithBootstrapPeers option#375

Merged
Bidon15 merged 5 commits intocelestiaorg:mainfrom
Bidon15:with_bootstrap_peer
Jan 24, 2022
Merged

node/config: add WithBootstrapPeers option#375
Bidon15 merged 5 commits intocelestiaorg:mainfrom
Bidon15:with_bootstrap_peer

Conversation

@Bidon15
Copy link
Member

@Bidon15 Bidon15 commented Jan 24, 2022

Add tests for WithMutualPeers and WithBootstrapPeers for both bridge/light types
Remove redundancy in WithMockClient test

This is needed for the swamp to initialise the light node with 2+ connections to bridge nodes
Resolves #372

Add tests for WithMutualPeers and WithBootstrapPeers for both bridge/light types
Remove redundancy in WithMockClient test
@Bidon15 Bidon15 self-assigned this Jan 24, 2022
@Bidon15 Bidon15 marked this pull request as ready for review January 24, 2022 11:44
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
renaynay
renaynay previously approved these changes Jan 24, 2022
renaynay
renaynay previously approved these changes Jan 24, 2022
@Bidon15 Bidon15 merged commit 300205f into celestiaorg:main Jan 24, 2022
@Bidon15 Bidon15 deleted the with_bootstrap_peer branch January 25, 2022 08:02
walldiss added a commit to walldiss/celestia-node that referenced this pull request Mar 9, 2026
Upgrade github.com/celestiaorg/go-header from v0.8.1 to v0.8.4-rc.

Key fixes in this release:
- fix(p2p): return Head() early when enough peers confirm the same header (celestiaorg#372)
  Light nodes no longer wait for ALL trusted peers to respond — once 2 peers
  agree on the same header, outstanding requests are cancelled immediately.
  Fixes mocha startup timeouts caused by a single slow bootstrapper.
- fix(p2p): add per-peer timeout to performRequest (celestiaorg#376)
  Each peer request in GetByHeight/Get now has its own timeout instead of
  sharing the parent context deadline, preventing a slow peer from consuming
  the entire remaining budget.
- chore: update go-libp2p fork with webtransport-go v0.10.0 compat (celestiaorg#375)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
walldiss added a commit to walldiss/celestia-node that referenced this pull request Mar 9, 2026
Upgrade github.com/celestiaorg/go-header from v0.8.1 to v0.8.4-rc.

Key fixes in this release:
- fix(p2p): return Head() early when enough peers confirm the same header (celestiaorg#372)
  Light nodes no longer wait for ALL trusted peers to respond — once 2 peers
  agree on the same header, outstanding requests are cancelled immediately.
  Fixes mocha startup timeouts caused by a single slow bootstrapper.
- fix(p2p): add per-peer timeout to performRequest (celestiaorg#376)
  Each peer request in GetByHeight/Get now has its own timeout instead of
  sharing the parent context deadline, preventing a slow peer from consuming
  the entire remaining budget.
- chore: update go-libp2p fork with webtransport-go v0.10.0 compat (celestiaorg#375)
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.

node: add WithBootstrapPeers Option

3 participants