update shard instructions

Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
This commit is contained in:
LordGhostX 2024-06-05 16:41:40 +01:00 committed by Danish Arora
parent b48f0ce764
commit 2f964177a0
No known key found for this signature in database
GPG Key ID: 1C6EF37CDAE1426E

View File

@ -24,7 +24,7 @@ await node.start();
When the `defaultBootstrap` parameter is set to `true`, your node will be bootstrapped using the [default bootstrap method](/guides/js-waku/configure-discovery#default-bootstrap-method). Have a look at the [Bootstrap Nodes and Discover Peers](/guides/js-waku/configure-discovery) guide to learn more methods to bootstrap nodes.
:::
By default, your node will route messages to the standard pubsub topic (`/waku/2/default-waku/proto`). If your project uses a different shared pubsub topic, you can configure this using the `ShardInfo` parameter:
A node needs to know how to route messages. In order to do that you can use standard pubsub topic (`/waku/2/default-waku/proto`). If your project uses a different shared pubsub topic, you can configure this using the `ShardInfo` parameter or by using a set of `contentTopics` that your node will be using:
```js
// Create the shard info