update init

This commit is contained in:
Sasha 2024-07-16 18:34:36 +02:00
parent 641a499d12
commit 09186afe70
No known key found for this signature in database

View File

@ -92,11 +92,15 @@ export async function runMultipleNodes(
staticNoiseKey: NOISE_KEY_1,
libp2p: {
addresses: { listen: ["/ip4/0.0.0.0/tcp/0/ws"] }
},
pubsubTopics,
shardInfo
}
};
if (shardInfo) {
waku_options.shardInfo = shardInfo;
} else {
waku_options.pubsubTopics = pubsubTopics;
}
log.info("Starting js waku node with :", JSON.stringify(waku_options));
let waku: LightNode | undefined;
try {