mirror of https://github.com/waku-org/waku-lab.git
chore: update dogfooding app to latest (#83)
This commit is contained in:
parent
67fe074471
commit
179b501c27
File diff suppressed because it is too large
Load Diff
|
@ -8,7 +8,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@libp2p/peer-id": "^4.1.2",
|
"@libp2p/peer-id": "^4.1.2",
|
||||||
"@waku/sdk": "0.0.26-16e9116.0",
|
"@waku/sdk": "0.0.27-39f8920.0",
|
||||||
"protobufjs": "^7.3.0"
|
"protobufjs": "^7.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -32,7 +32,9 @@ const messageSentEvent = new CustomEvent("messageSent");
|
||||||
|
|
||||||
const wakuNode = async (): Promise<LightNode> => {
|
const wakuNode = async (): Promise<LightNode> => {
|
||||||
return await createLightNode({
|
return await createLightNode({
|
||||||
contentTopics: [DEFAULT_CONTENT_TOPIC],
|
networkConfig: {
|
||||||
|
contentTopics: [DEFAULT_CONTENT_TOPIC],
|
||||||
|
},
|
||||||
defaultBootstrap: true,
|
defaultBootstrap: true,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -41,16 +43,6 @@ export async function app(telemetryClient: TelemetryClient) {
|
||||||
const node = await wakuNode();
|
const node = await wakuNode();
|
||||||
await node.start();
|
await node.start();
|
||||||
|
|
||||||
// TODO: https://github.com/waku-org/js-waku/issues/2079
|
|
||||||
// Dialing bootstrap peers right on start in order to have Filter subscription initiated properly
|
|
||||||
await node.dial("/dns4/node-01.do-ams3.waku.test.status.im/tcp/8000/wss");
|
|
||||||
await node.dial(
|
|
||||||
"/dns4/node-01.ac-cn-hongkong-c.waku.test.status.im/tcp/8000/wss"
|
|
||||||
);
|
|
||||||
await node.dial(
|
|
||||||
"/dns4/node-01.gc-us-central1-a.waku.test.status.im/tcp/8000/wss"
|
|
||||||
);
|
|
||||||
|
|
||||||
await waitForRemotePeer(node);
|
await waitForRemotePeer(node);
|
||||||
|
|
||||||
const peerId = node.libp2p.peerId.toString();
|
const peerId = node.libp2p.peerId.toString();
|
||||||
|
@ -121,7 +113,6 @@ export async function app(telemetryClient: TelemetryClient) {
|
||||||
peerIdRemote: failure.peerId?.toString(),
|
peerIdRemote: failure.peerId?.toString(),
|
||||||
errorMessage: failure.error.toString(),
|
errorMessage: failure.error.toString(),
|
||||||
contentTopic: DEFAULT_CONTENT_TOPIC,
|
contentTopic: DEFAULT_CONTENT_TOPIC,
|
||||||
pubsubTopic: DefaultPubsubTopic,
|
|
||||||
}))
|
}))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue