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": {
|
||||
"@libp2p/peer-id": "^4.1.2",
|
||||
"@waku/sdk": "0.0.26-16e9116.0",
|
||||
"@waku/sdk": "0.0.27-39f8920.0",
|
||||
"protobufjs": "^7.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -32,7 +32,9 @@ const messageSentEvent = new CustomEvent("messageSent");
|
|||
|
||||
const wakuNode = async (): Promise<LightNode> => {
|
||||
return await createLightNode({
|
||||
contentTopics: [DEFAULT_CONTENT_TOPIC],
|
||||
networkConfig: {
|
||||
contentTopics: [DEFAULT_CONTENT_TOPIC],
|
||||
},
|
||||
defaultBootstrap: true,
|
||||
});
|
||||
};
|
||||
|
@ -41,16 +43,6 @@ export async function app(telemetryClient: TelemetryClient) {
|
|||
const node = await wakuNode();
|
||||
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);
|
||||
|
||||
const peerId = node.libp2p.peerId.toString();
|
||||
|
@ -121,7 +113,6 @@ export async function app(telemetryClient: TelemetryClient) {
|
|||
peerIdRemote: failure.peerId?.toString(),
|
||||
errorMessage: failure.error.toString(),
|
||||
contentTopic: DEFAULT_CONTENT_TOPIC,
|
||||
pubsubTopic: DefaultPubsubTopic,
|
||||
}))
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue