Skip to content

Commit

Permalink
config @libp2p/bootstrap (#513)
Browse files Browse the repository at this point in the history
* config `@libp2p/bootstrap`

* Create late-hotels-hide.md

* f
  • Loading branch information
felicio authored Dec 15, 2023
1 parent 10f3aa0 commit edb4bee
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-hotels-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@status-im/js": patch
---

config `@libp2p/bootstrap`
7 changes: 6 additions & 1 deletion packages/status-js/src/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
],
},
})
Expand Down
9 changes: 8 additions & 1 deletion packages/status-js/src/request-client/request-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

1 comment on commit edb4bee

@vercel
Copy link

@vercel vercel bot commented on edb4bee Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

status-web – ./apps/web

status-web-status-im-web.vercel.app
status-web-git-main-status-im-web.vercel.app
status-web.vercel.app

Please sign in to comment.