From 38a7407355822730c17d75ce66f049277f6107ab Mon Sep 17 00:00:00 2001 From: weboko Date: Mon, 12 Dec 2022 12:26:34 +0100 Subject: [PATCH] move to default bootstrap --- light-chat/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/light-chat/index.js b/light-chat/index.js index 8e90253..05dd2c5 100644 --- a/light-chat/index.js +++ b/light-chat/index.js @@ -54,11 +54,9 @@ async function initWakuContext({ .add(new protobuf.Field("nick", 2, "string")) .add(new protobuf.Field("text", 3, "bytes")); - const node = await wakuCreate.createLightNode(); + const node = await wakuCreate.createLightNode({ defaultBootstrap: true }); await node.start(); - - await node.dial(multiAddr, protocols); await waitForRemotePeer(node, protocols); // Set a filter by using Decoder for a given ContentTopic