mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-22 09:08:19 +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,
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user