This commit is contained in:
Felicio Mununga 2023-11-16 14:42:29 +01:00
parent 83c99ed8a7
commit 0dbac4253d
No known key found for this signature in database
GPG Key ID: C4736C7AEBA55BE5
1 changed files with 8 additions and 1 deletions

View File

@ -40,7 +40,14 @@ export function WakuProvider({ peers, children }: Props) {
libp2p: {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore icorrectly types from @libp2p/boostrap#package.json; patched only in @status-im/js for now
peerDiscovery: [bootstrap({ list: peers, timeout: 0, tagTTL: Infinity })],
peerDiscovery: [
bootstrap({
list: peers,
timeout: 0,
// note: Infinity prevents connection
// tagTTL: Infinity,
}),
],
},
})