mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-23 09:38:24 +00:00
update init
This commit is contained in:
parent
641a499d12
commit
09186afe70
@ -92,11 +92,15 @@ export async function runMultipleNodes(
|
|||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
libp2p: {
|
libp2p: {
|
||||||
addresses: { listen: ["/ip4/0.0.0.0/tcp/0/ws"] }
|
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));
|
log.info("Starting js waku node with :", JSON.stringify(waku_options));
|
||||||
let waku: LightNode | undefined;
|
let waku: LightNode | undefined;
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user