chore: update dogfooding app to latest (#83)

This commit is contained in:
Sasha 2024-08-23 11:45:26 +02:00 committed by GitHub
parent 67fe074471
commit 179b501c27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 313 additions and 393 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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": {

View File

@ -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,
}))
);
}