mirror of
https://github.com/logos-messaging/logos-messaging-simulator.git
synced 2026-01-02 14:03:07 +00:00
initial updates for latest WakuRlnV2 and TST contracts
This commit is contained in:
parent
479b908c42
commit
3c4bdd9213
10
README.md
10
README.md
@ -12,15 +12,15 @@ cd waku-simulator
|
||||
Configure the simulation parameters. You can place the env variable in an `.env` file.
|
||||
|
||||
```
|
||||
export NWAKU_IMAGE=quay.io/wakuorg/nwaku-pr:2759-rln-v2
|
||||
export NWAKU_IMAGE=harbor.status.im/wakuorg/nwaku:v0.36.0
|
||||
export NUM_NWAKU_NODES=5
|
||||
export TRAFFIC_DELAY_SECONDS=15
|
||||
export TRAFFIC_DELAY_SECONDS=30
|
||||
export MSG_SIZE_KBYTES=10
|
||||
export PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
|
||||
export ETH_FROM=0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
|
||||
export RLN_RELAY_EPOCH_SEC=10
|
||||
export RLN_RELAY_MSG_LIMIT=2
|
||||
export MAX_MESSAGE_LIMIT=100 # Contract's message limit. Needs to be higher or equal than RLN_RELAY_MSG_LIMIT, otherwise nodes won't start correctly.
|
||||
export RLN_RELAY_EPOCH_SEC=600
|
||||
export RLN_RELAY_MSG_LIMIT=20
|
||||
export RLN_CONTRACT_REPO_COMMIT=851fa0803b3180691392bc06069339bba37927ef
|
||||
```
|
||||
|
||||
Run the following command
|
||||
|
||||
@ -40,7 +40,7 @@ services:
|
||||
labels:
|
||||
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
|
||||
environment:
|
||||
- RLN_CONTRACT_REPO_COMMIT=${RLN_CONTRACT_REPO_COMMIT:-e75ac913e579ad872f54b2225eec35d1de3d98b0}
|
||||
- RLN_CONTRACT_REPO_COMMIT=${RLN_CONTRACT_REPO_COMMIT:-851fa0803b3180691392bc06069339bba37927ef}
|
||||
- PRIVATE_KEY=${PRIVATE_KEY}
|
||||
- RPC_URL=${RPC_URL:-http://foundry:8545}
|
||||
- ETH_FROM=${ETH_FROM}
|
||||
|
||||
@ -12,7 +12,7 @@ docker run --network waku-simulator_simulation alrevuelta/go-waku-light:4fabb22
|
||||
--contract-address=0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9 \
|
||||
send-messages-loop \
|
||||
--priv-key=ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \
|
||||
--user-message-limit=1 \
|
||||
--user-message-limit=20 \
|
||||
--message="light client sending a rln message" \
|
||||
--content-topic=/basic2/1/test/proto \
|
||||
--pubsub-topic=/waku/2/rs/66/0 \
|
||||
@ -31,7 +31,7 @@ for i in {1..5}; do
|
||||
--contract-address=0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9 \
|
||||
send-messages-loop \
|
||||
--priv-key=ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \
|
||||
--user-message-limit=1 \
|
||||
--user-message-limit=20 \
|
||||
--message="light client sending a rln message" \
|
||||
--content-topic=/basic2/1/test/proto \
|
||||
--pubsub-topic=/waku/2/rs/66/0 \
|
||||
|
||||
@ -10,12 +10,12 @@ Some of the most important parameters are:
|
||||
- `TRAFFIC_DELAY_SECONDS` and `MSG_SIZE_KBYTES` are used to inject traffic via the rest API into the network.
|
||||
|
||||
```bash
|
||||
export NWAKU_IMAGE=quay.io/wakuorg/nwaku-pr:2759-rln-v2
|
||||
export NWAKU_IMAGE=harbor.status.im/wakuorg/nwaku:v0.36.0
|
||||
export NUM_NWAKU_NODES=5
|
||||
export RLN_RELAY_EPOCH_SEC=1
|
||||
export RLN_RELAY_MSG_LIMIT=1
|
||||
export RLN_RELAY_EPOCH_SEC=600
|
||||
export RLN_RELAY_MSG_LIMIT=20
|
||||
|
||||
export TRAFFIC_DELAY_SECONDS=15
|
||||
export TRAFFIC_DELAY_SECONDS=30
|
||||
export MSG_SIZE_KBYTES=10
|
||||
|
||||
export PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
|
||||
|
||||
@ -15,4 +15,4 @@ ETH_FROM=0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
|
||||
# RLNv2 limits
|
||||
RLN_RELAY_MSG_LIMIT=100
|
||||
RLN_RELAY_EPOCH_SEC=600
|
||||
RLN_CONTRACT_REPO_COMMIT=e75ac913e579ad872f54b2225eec35d1de3d98b0
|
||||
RLN_CONTRACT_REPO_COMMIT=851fa0803b3180691392bc06069339bba37927ef
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user