This commit is contained in:
Felicio Mununga 2023-11-16 14:30:28 +01:00
parent dc007d1285
commit 83c99ed8a7
No known key found for this signature in database
GPG Key ID: C4736C7AEBA55BE5
1 changed files with 2 additions and 3 deletions

View File

@ -6,7 +6,6 @@ import { bootstrap } from '@libp2p/bootstrap'
import { Protocols } from '@waku/interfaces'
import { createLightNode, waitForRemotePeer } from '@waku/sdk'
import type { LightNode } from '@waku/interfaces'
import { config } from '../../config'
type Context = {
waku: LightNode | undefined
@ -40,8 +39,8 @@ export function WakuProvider({ peers, children }: Props) {
emitSelf: true,
libp2p: {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore icorrectly exported types from @libp2p/boostrap#package.json; patched only in @status-im/js for now
peerDiscovery: [bootstrap({ list: peers[config.wakuConfig.environment] })],
// @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 })],
},
})