move to default bootstrap

This commit is contained in:
weboko 2022-12-12 12:26:34 +01:00
parent 5bee034de8
commit 38a7407355
No known key found for this signature in database
1 changed files with 1 additions and 3 deletions

View File

@ -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