Skip to content

Commit

Permalink
update the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nibty committed Jan 26, 2024
1 parent d8b81f8 commit 25f6963
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docker/networksimulator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ Give it a few minutes for all the nodes to start up.
curl -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":83}' http://127.0.0.1:8545
```

Use the fakenet private keys from [../evmcore/apply_fake_genesis.go](../evmcore/apply_fake_genesis.go) to access the validator accounts and their funds

See test.py for an example of how to interact with the network.

## Lachesis Base
Expand Down Expand Up @@ -97,16 +95,19 @@ Prometheus and Granfana are included in the docker-compose file.

The test.py script is an example of how to interact with the simulated network. It uses the web3.py library to send transactions to the network.

Note: grab a private key from [../evmcore/apply_fake_genesis.go](../evmcore/apply_fake_genesis.go) to use as the sender.
> send 5 transactions to the network using validator 1's private key
```shell
python3 test.py 5
```

> send 5 transactions to the network
> send 100 transactions and don't wait for a receipt from validator 2
```shell
PRIVATE_KEY= python3 test.py 5
python3 test.py 5 --no-wait --validator 2
```

> send 100 transactions to the network and don't wait for a receipt
> send 1000 transactions and don't wait for a receipt from 10 validators concurrently
```shell
PRIVATE_KEY= python3 test.py 5 --no-wait
python3 test.py 5 --no-wait --validator 2
```

> see all the options
Expand Down

0 comments on commit 25f6963

Please sign in to comment.