Open
Description
This is a feature request
Problem
It seems that currently the only straightforward way to enable peerExchange
is to set defaultBootstrap: true
. This is problematic in case a user runs on a custom pubsubTopic or generally separate network and may not want to use default fleets to bootstrap.
It is possible to enable peerExchange
by adding it to libp2p.peerDiscovery
(thanks @danisharora099 !)
waku = await createLightNode({
libp2p: {
peerDiscovery: [
wakuPeerExchangeDiscovery(pubsubTopic)
]
}
});
But it might be useful to either enable it by default, or add something like peerExchange: true
to the top level config
Proposed Solutions
(these are or
options:) )
- Enable peerExchange by default
- Add
peerExchange
parameter tocreateLightNode
- Document the current way (via libp2p.peerDiscovery)
Notes
Metadata
Metadata
Assignees
Type
Projects
Status
To Do