Open danisharora099 opened 6 months ago
This is a change request
Similar to work on https://github.com/waku-org/js-waku/pull/1871, developers currently rely on importing discovery packages and passing it to libp2p.peerDiscovery like:
libp2p.peerDiscovery
import {wakuPeerExchange, wakuDnsDiscovery} from '@waku/sdk'; createLightNode({ libp2p: { peerDiscovery: [wakuPeerExchange(), wakuDnsDiscovery()...] } })
Provide an API like:
createLightNode({ discovery: { peerExchange: true, dnsDiscovery: true, bootstrap: peers, local-cache: true, } })
This is a change request
Problem
Similar to work on https://github.com/waku-org/js-waku/pull/1871, developers currently rely on importing discovery packages and passing it to
libp2p.peerDiscovery
like:Proposed Solutions
Provide an API like:
Notes