Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(_options: LodestarNodeOpts) {
const wrtcStar = new WStar({ id: _options.peerInfo.id });
const defaults = {
modules: {
transport: [TCP, wrtcStar],
streamMuxer: [Mplex],
peerDiscovery: [Bootstrap, wrtcStar.discovery],
dht: KadDHT
},
config: {
peerDiscovery: {
bootstrap: {
interval: 2000,
enabled: true,
list: _options.bootstrap || []
}
},