nimbus-eth2/scripts/README.md
Zahary Karadjov f5e9b9a922 Allow running local nodes without attached validators
The number of user nodes is now specified with `USER_NODES`.

To make the instructions more stable, the "numeric id" of the user
nodes will be starting from 0 (so you can always use `run_node.sh 0`
to start a user node).

If you specify a node index above the total number of nodes, you'll
launch a node without any validators attached (this is useful for
testing the sync for example).
2019-11-11 23:29:36 +00:00

36 lines
1.0 KiB
Markdown

_Work in progress. Things may and probably will break for the foreseeable future. Do not rely on this for anything._
## Connecting to Testnet
To connect to a short-lived testnet we may or may not have running at the moment, use the `connect_to_testnet` script like so:
```bash
scripts/connect_to_testnet.sh testnet0
```
## Running your own testnet
The `beacon_node` binary has a `createTestnet` command.
```bash
nim c -r beacon_chain/beacon_node \
--data-dir=$NETWORK_DIR/data \
createTestnet \
--validators-dir=$NETWORK_DIR \
--total-validators=$VALIDATOR_COUNT \
--last-user-validator=$LAST_USER_VALIDATOR \
--output-genesis=$NETWORK_DIR/genesis.ssz \
--output-bootstrap-file=$NETWORK_DIR/bootstrap_nodes.txt \
--bootstrap-address=$PUBLIC_IP \
--genesis-offset=600 # Delay in seconds
```
Replace ENV vars with values that make sense to you.
Full tutorial coming soon.
## Maintaining the Status testnets
For detailed instructions, please see https://github.com/status-im/nimbus-private/blob/master/testnets-maintenance.md