Skip to content

Commit

Permalink
Update connect-light-node documentation (#68)
Browse files Browse the repository at this point in the history
* update connect-light-node documentation

* update epoch value
  • Loading branch information
stubbsta authored Jun 14, 2024
1 parent 97ee6d7 commit f897701
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/connect-light-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Note that if you spin up multiple services like this using the same `priv-key` s
- ⚠️ change `lightpush-peer` to the node you wish. Note that the multiaddress is logged by every peer at startup.

```jsx
docker run --network waku-simulator_simulation alrevuelta/go-waku-light:07b8f32 \
docker run --network waku-simulator_simulation alrevuelta/go-waku-light:4fabb22 \
--eth-endpoint=http://foundry:8545 \
--contract-address=0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9 \
send-messages-loop \
Expand All @@ -18,14 +18,15 @@ send-messages-loop \
--pubsub-topic=/waku/2/rs/66/0 \
--cluster-id=66 \
--lightpush-peer=/ip4/10.2.0.16/tcp/60000/p2p/16Uiu2HAmAA99YfoLitSXgY1bHaqjaTKhyrU4M4y3D1rVj1bmcgL8 \
--message-every-secs=5
--message-every-secs=5 \
--epoch-size-secs=1
```

Note that in some examples, it could be interesting to run multiple instances, either in parallel or one after the other. For example if you set `amount-message-to-send=1` this will send just 1 message and exit. You can for example run this 100 times, where a fresh RLN membership will be created on every run, create a new peerId, send a message and exit.

```bash
for i in {1..5}; do
docker run --rm --network waku-simulator_simulation alrevuelta/go-waku-light:07b8f32 \
docker run --rm --network waku-simulator_simulation alrevuelta/go-waku-light:4fabb22 \
--eth-endpoint=http://foundry:8545 \
--contract-address=0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9 \
send-messages-loop \
Expand All @@ -37,6 +38,7 @@ for i in {1..5}; do
--cluster-id=66 \
--lightpush-peer=/ip4/10.2.0.16/tcp/60000/p2p/16Uiu2HAm6a4kUT7YutsbwgQcmWw5VLzN3zj1StwiBVf2LUH9kb4A \
--message-every-secs=5 \
--epoch-size-secs=1 \
--amount-message-to-send=1

if [ $? -ne 0 ]; then
Expand Down

0 comments on commit f897701

Please sign in to comment.