libp2p / go-libp2p-pubsub

The PubSub implementation for go-libp2p
https://github.com/libp2p/specs/tree/master/pubsub
Other
323 stars 187 forks source link

How nodes find each other? #469

Closed VinnyVicious closed 2 years ago

VinnyVicious commented 2 years ago

Is there any document outlining the process for a node to find one another? Does it brute scan the local network? What about nodes connected to the internet?

vyzo commented 2 years ago

peer discovery is very explicitly outside the scope of the protocol, with the exception of prune PX in gossipsub (see the spec). The library receives connection notifications and reacts accordingly; it is up to you to use an appropriate discovery strategy for your application.

On Mon, Jan 10, 2022, 19:34 VinnyVicious @.***> wrote:

Is there any document outlining the process for a node to find one another? Does it brute scan the local network? What about nodes connected to the internet?

— Reply to this email directly, view it on GitHub https://github.com/libp2p/go-libp2p-pubsub/issues/469, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAI4SUNXZ6LJE2YBJR6DSTUVMKBNANCNFSM5LUHKZYQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

VinnyVicious commented 2 years ago

Ah, thank you. This wasn't very clear at first.