Skip to content

Commit

Permalink
gossipsub: minor clarification in Ambient Peer Discovery section (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikerah authored and raulk committed Jan 31, 2019
1 parent ec88826 commit 0cfc5c1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pubsub/gossipsub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@ It implements pubsub in the most basic manner, with two defining aspects:

### Ambient Peer Discovery

With ambient peer discovery, the function is pushed outside the scope
of the protocol. Instead, it relies on ambient connection events to
perform peer discovery via protocol identification. Whenever a new
peer is connected, the protocol checks to see if the peer implements
floodsub, and if so it sends a hello packet that announces the topics
that it is currently subscribing to.
With ambient peer discovery, the function is pushed outside the scope of the
protocol. Instead, the mechanism for discovering peers is provided for by the
environment. In practice, this can be embodied by DHT walks, rendezvous
points, etc. This protocol relies on the ambient connection events produced by
such mechanisms. Whenever a new peer is connected, the protocol checks to see
if the peer implements floodsub and/or gossipsub, and if so, it sends it a
hello packet that announces the topics that it is currently subscribing to.

This allows the peer to maintain soft overlays for all topics of
interest. The overlay is maintained by exchanging subscription
Expand Down

0 comments on commit 0cfc5c1

Please sign in to comment.