150931950d
## Issue Addressed
Resolves https://github.com/sigp/lighthouse/issues/2763
## Proposed Changes
- Add a workflow which tests that local testnet starts successfully
- Added `set` option into the scripts in order to fail fast so that we can notice errors during starting local testnet.
- Fix errors on MacOS
- The redirect `&>>` is supported since bash v4 but the version bundled in macOS(11.6.1) is v3. a54f119c9b
23 lines
415 B
Bash
Executable File
23 lines
415 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>
|
|
|
|
set -Eeuo pipefail
|
|
|
|
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 \
|
|
$VC_ARGS
|