nimbus-eth2/scripts
Zahary Karadjov b3d23c052c Switch to 30 seconds slot duration; UX improvements
* On the testnet site, the first N instead of the last N validators
  will be considered reserved for users

* The number of validators is consistently named `totalValidators`
  in all commands

* Proper keys are generated by default in validator_keygen
2019-03-27 18:13:39 +02:00
..
README.md Switch to 30 seconds slot duration; UX improvements 2019-03-27 18:13:39 +02:00
attach_validators.sh Dumbed down the validator key import procedure 2019-03-26 17:37:31 +02:00
connect_to_testnet.sh Switch to 30 seconds slot duration; UX improvements 2019-03-27 18:13:39 +02:00
download_validator_keys.sh Helpful script for bulk downloading of validator keys 2019-03-27 18:13:39 +02:00
reset_testnet.sh Switch to 30 seconds slot duration; UX improvements 2019-03-27 18:13:39 +02:00
reset_testnet0.sh Helpful scripts for resetting the testnets 2019-03-19 21:50:22 +02:00
reset_testnet1.sh Helpful scripts for resetting the testnets 2019-03-19 21:50:22 +02:00
testnet0.env Switch to 30 seconds slot duration; UX improvements 2019-03-27 18:13:39 +02:00
testnet1.env Switch to 30 seconds slot duration; UX improvements 2019-03-27 18:13:39 +02:00

README.md

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:

scripts/connect_to_testnet.sh testnet0

Running your own testnet

The beacon_node binary has a createTestnet command.

  nim c -r beacon_chain/beacon_node \
    --network=$NETWORK_NAME \
    --dataDir=$DATA_DIR/node-0 \
    createTestnet \
    --networkId=$NETWORK_ID \
    --validatorsDir=$NETWORK_DIR \
    --totalValidators=$VALIDATOR_COUNT \
    --lastUserValidator=$LAST_USER_VALIDATOR \
    --outputGenesis=$NETWORK_DIR/genesis.json \
    --outputNetwork=$NETWORK_DIR/$NETWORK_FLAVOUR-network.json \
    --bootstrapAddress=$PUBLIC_IP \
    --genesisOffset=600 # Delay in seconds

Replace ENV vars with values that make sense to you.

Full tutorial coming soon.