config `@libp2p/bootstrap` (#513)
* config `@libp2p/bootstrap` * Create late-hotels-hide.md * f
This commit is contained in:
parent
10f3aa030e
commit
edb4beefdd
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"@status-im/js": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
config `@libp2p/bootstrap`
|
|
@ -160,7 +160,12 @@ class Client {
|
||||||
* >
|
* >
|
||||||
* >@see https://forum.vac.dev/t/waku-v2-scalability-studies/142/2
|
* >@see https://forum.vac.dev/t/waku-v2-scalability-studies/142/2
|
||||||
*/
|
*/
|
||||||
bootstrap({ list: peers[environment] }),
|
bootstrap({
|
||||||
|
list: peers[environment],
|
||||||
|
timeout: 0,
|
||||||
|
// note: Infinity prevents connection
|
||||||
|
// tagTTL: Infinity,
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -61,7 +61,14 @@ class RequestClient {
|
||||||
pingKeepAlive: 0,
|
pingKeepAlive: 0,
|
||||||
relayKeepAlive: 0,
|
relayKeepAlive: 0,
|
||||||
libp2p: {
|
libp2p: {
|
||||||
peerDiscovery: [bootstrap({ list: peers[environment] })],
|
peerDiscovery: [
|
||||||
|
bootstrap({
|
||||||
|
list: peers[environment],
|
||||||
|
timeout: 0,
|
||||||
|
// note: Infinity prevents connection
|
||||||
|
// tagTTL: Infinity,
|
||||||
|
}),
|
||||||
|
],
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
await waku.start()
|
await waku.start()
|
||||||
|
|
Loading…
Reference in New Issue