lighthouse/scripts/local_testnet/validator_client.sh
Pawan Dhananjay 95a362213d 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.
2021-03-30 05:17:58 +00:00

20 lines
383 B
Bash
Executable File

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