From df7dedf62441d1588ea02b8f581c6fb2111012d7 Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Fri, 28 Oct 2022 12:52:17 +1100 Subject: [PATCH] chore(eth-pm): use prod fleet nwaku 0.12.0 fixes the issue of not being able to connect to a nwaku node without relay enabled. --- eth-pm/src/waku.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/eth-pm/src/waku.ts b/eth-pm/src/waku.ts index 12268d2..b3261ac 100644 --- a/eth-pm/src/waku.ts +++ b/eth-pm/src/waku.ts @@ -5,11 +5,6 @@ import { PrivateMessage, PublicKeyMessage } from "./messaging/wire"; import { validatePublicKeyMessage } from "./crypto"; import { Message } from "./messaging/Messages"; import { equals } from "uint8arrays/equals"; -import { PeerDiscoveryStaticPeers } from "js-waku/lib/peer_discovery_static_list"; -import { - getPredefinedBootstrapNodes, - Fleet, -} from "js-waku/lib/predefined_bootstrap_nodes"; import { waitForRemotePeer } from "js-waku/lib/wait_for_remote_peer"; import { createLightNode } from "js-waku/lib/create_waku"; @@ -17,13 +12,7 @@ export const PublicKeyContentTopic = "/eth-pm/1/public-key/proto"; export const PrivateMessageContentTopic = "/eth-pm/1/private-message/proto"; export async function initWaku(): Promise { - const waku = await createLightNode({ - libp2p: { - peerDiscovery: [ - new PeerDiscoveryStaticPeers(getPredefinedBootstrapNodes(Fleet.Test)), - ], - }, - }); + const waku = await createLightNode({ defaultBootstrap: true }); await waku.start(); await waitForRemotePeer(waku, [Protocols.Filter, Protocols.LightPush]);