diff --git a/.changeset/late-hotels-hide.md b/.changeset/late-hotels-hide.md new file mode 100644 index 00000000..8424f413 --- /dev/null +++ b/.changeset/late-hotels-hide.md @@ -0,0 +1,5 @@ +--- +"@status-im/js": patch +--- + +config `@libp2p/bootstrap` diff --git a/packages/status-js/src/client/client.ts b/packages/status-js/src/client/client.ts index aaa88e4a..4ba8d4c5 100644 --- a/packages/status-js/src/client/client.ts +++ b/packages/status-js/src/client/client.ts @@ -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, + }), ], }, }) diff --git a/packages/status-js/src/request-client/request-client.ts b/packages/status-js/src/request-client/request-client.ts index 163f5f2a..f284c3d9 100644 --- a/packages/status-js/src/request-client/request-client.ts +++ b/packages/status-js/src/request-client/request-client.ts @@ -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()