2019-03-26 16:38:30 +00:00
|
|
|
_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 \
|
|
|
|
--network=$NETWORK_NAME \
|
|
|
|
--dataDir=$DATA_DIR/node-0 \
|
|
|
|
createTestnet \
|
|
|
|
--validatorsDir=$NETWORK_DIR \
|
2019-03-27 12:06:06 +00:00
|
|
|
--totalValidators=$VALIDATOR_COUNT \
|
|
|
|
--lastUserValidator=$LAST_USER_VALIDATOR \
|
2019-03-26 16:38:30 +00:00
|
|
|
--outputGenesis=$NETWORK_DIR/genesis.json \
|
2019-09-26 16:07:38 +00:00
|
|
|
--outputNetworkMetadata=$NETWORK_DIR/network.json \
|
|
|
|
--outputBootstrapNodes=$NETWORK_DIR/bootstrap_nodes.txt \
|
2019-03-26 16:38:30 +00:00
|
|
|
--bootstrapAddress=$PUBLIC_IP \
|
|
|
|
--genesisOffset=600 # Delay in seconds
|
|
|
|
```
|
|
|
|
|
|
|
|
Replace ENV vars with values that make sense to you.
|
|
|
|
|
|
|
|
Full tutorial coming soon.
|
2019-09-10 22:13:27 +00:00
|
|
|
|
|
|
|
## Maintaining the Status testnets
|
|
|
|
|
|
|
|
For detailed instructions, please see https://github.com/status-im/nimbus-private/blob/master/testnets-maintenance.md
|
|
|
|
|