You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, several subsystems of libp2p (namely autorelay, the DHT, and autonat), are individually configured, and aren't exposed from libp2p with a single mental model.
For instance, we currently have a single option to "EnableAutoRelay", along with a mode "hop vs discovery".
Instead, it might be more understandable to expose options in the following way:
I believe we can actually simplify both of these to "off" or "on" where "on" always means "when reachable". Then it's up to the user to specify "reachable", "unrachable", "detect".
Currently, several subsystems of libp2p (namely autorelay, the DHT, and autonat), are individually configured, and aren't exposed from libp2p with a single mental model.
For instance, we currently have a single option to "EnableAutoRelay", along with a mode "hop vs discovery".
Instead, it might be more understandable to expose options in the following way:
HostReachability
(default: Discover, options: Discover, Unreachable, Reachable).NATService
(default: Off, options: Off, WhenReachable, On)DHTService
(default: WhenReachable, options: Off, WhenReachable, On)The text was updated successfully, but these errors were encountered: