README.md: fix eth2_network_simulation instructions

This commit is contained in:
Ștefan Talpalaru 2019-04-01 22:30:37 +02:00
parent a933a8c2d5
commit cf2b9e5a84
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9

View File

@ -43,20 +43,18 @@ The beacon node simulation is will create a full peer-to-peer network of beacon
```bash ```bash
# get a shell with the right environment vars set: # Clear data files from your last run and start the simulation with a new genesis block:
../../env.sh bash
# Start the beacon chain simulation, resuming from a previous state (if any):
make eth2_network_simulation make eth2_network_simulation
# Clear data files from your last run and restart the simulation with a new genesis block: # In another terminal, get a shell with the right environment variables set:
make clean_eth2_network_simulation_files eth2_network_simulation ../../env.sh bash
# Run an extra node - by default the network will launch with 9 nodes, each # Run an extra node - by default the network will launch with 9 nodes, each
# hosting 10 validators. The last 10 validators are lazy bums that hid from the # hosting 10 validators. The last 10 validators are lazy bums that hid from the
# startup script, but you can command them back to work in a separate terminal # startup script, but you can command them back to work with:
# with:
./tests/simulation/run_node.sh 9 ./tests/simulation/run_node.sh 9
# (yes, it's 0-based indexing)
``` ```
You can also separate the output from each beacon node in its own panel, using [multitail](http://www.vanheusden.com/multitail/): You can also separate the output from each beacon node in its own panel, using [multitail](http://www.vanheusden.com/multitail/):