universal-connectivity icon indicating copy to clipboard operation
universal-connectivity copied to clipboard

feat: add bootstrap mode to go peer

Open dozyio opened this issue 1 year ago • 9 comments

  • Add bootstrapper flag to go-peer
  • Enable peer exchange on go-peer when bootstrapping
  • add directpeer option for bootstrapper go-peer

TODO

  • Peer scoring

Was thinking to add the same bootstrapper functionality to the rust peer but PX is not implemented https://github.com/libp2p/rust-libp2p/issues/2398

dozyio avatar Dec 14 '24 22:12 dozyio

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
universal-connectivity ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 7:49pm

vercel[bot] avatar Dec 14 '24 22:12 vercel[bot]

@dozyio Have you tried this with the browser peer? If enabled, does this make pubsub peer discovery redundant?

2color avatar Feb 26 '25 13:02 2color

@dozyio Have you tried this with the browser peer? If enabled, does this make pubsub peer discovery redundant?

Need to do the browser peer bits & peer scoring Can't drop the pubsub peer discovery as rust doesn't support PX (might need to reconfirm this) But we should be able to remove this https://github.com/libp2p/universal-connectivity/blob/main/js-peer/src/lib/libp2p.ts#L105 and let gossipsub handle the peering

dozyio avatar Feb 26 '25 15:02 dozyio

@dozyio what's the status of this PR? I'll try to get it landed next week if you refresh it and tell me it's complete.

dhuseby avatar Aug 28 '25 22:08 dhuseby

@dozyio what's the status of this PR? I'll try to get it landed next week if you refresh it and tell me it's complete.

will take a look this week. I was going to close it as rust doesn't support peer exchange... however python does, so might be worth implementing

dozyio avatar Aug 31 '25 15:08 dozyio

@dozyio does peer exchange work with js-libp2p?

2color avatar Aug 31 '25 15:08 2color

@dozyio does peer exchange work with js-libp2p?

yeah, px works with js-libp2p

dozyio avatar Sep 01 '25 16:09 dozyio

https://github.com/libp2p/go-libp2p-pubsub/pull/643 - will need this merging before this one can go in

dozyio avatar Sep 07 '25 16:09 dozyio

libp2p/go-libp2p-pubsub#643 - will need this merging before this one can go in

can skip this - needed to add Dscore 0

dozyio avatar Sep 13 '25 16:09 dozyio