Fix local testnet scripts (#2229)

## Issue Addressed

Resolves #2094 

## Proposed Changes

Fixes scripts for creating local testnets. Adds an option in `lighthouse boot_node` to run with a previously generated enr.
This commit is contained in:
Pawan Dhananjay
2021-03-30 05:17:58 +00:00
parent 9eb1945136
commit 95a362213d
18 changed files with 360 additions and 141 deletions

View File

@@ -2,17 +2,18 @@
#
# Starts a validator client based upon a genesis state created by
# `./local_testnet_genesis_state`.
# `./setup.sh`.
#
# Usage: ./validator_client.sh <DATADIR> <BEACON-NODE-HTTP> <OPTIONAL-DEBUG-LEVEL>
source ./vars.env
DEBUG_LEVEL=${1:-info}
DEBUG_LEVEL=${3:-info}
exec lighthouse \
--debug-level $DEBUG_LEVEL \
vc \
--datadir $DATADIR \
--datadir $1 \
--testnet-dir $TESTNET_DIR \
--init-slashing-protection \
--allow-unsynced
--beacon-nodes $2