config `@libp2p/bootstrap` (#513)

* config `@libp2p/bootstrap`

* Create late-hotels-hide.md

* f
This commit is contained in:
Felicio Mununga 2023-12-15 14:17:25 +01:00 committed by GitHub
parent 10f3aa030e
commit edb4beefdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
"@status-im/js": patch
---
config `@libp2p/bootstrap`

View File

@ -160,7 +160,12 @@ class Client {
* >
* >@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,
}),
],
},
})

View File

@ -61,7 +61,14 @@ class RequestClient {
pingKeepAlive: 0,
relayKeepAlive: 0,
libp2p: {
peerDiscovery: [bootstrap({ list: peers[environment] })],
peerDiscovery: [
bootstrap({
list: peers[environment],
timeout: 0,
// note: Infinity prevents connection
// tagTTL: Infinity,
}),
],
},
})
await waku.start()