lighthouse/scripts/local_testnet/beacon_node.sh
Michael Sproul 17a2c778e3 Altair validator client and HTTP API (#2404)
## Proposed Changes

* Implement the validator client and HTTP API changes necessary to support Altair


Co-authored-by: realbigsean <seananderson33@gmail.com>
Co-authored-by: Michael Sproul <michael@sigmaprime.io>
2021-08-06 00:47:31 +00:00

25 lines
481 B
Bash
Executable File

#!/usr/bin/env bash
#
# Starts a beacon node based upon a genesis state created by
# `./setup.sh`.
#
# Usage: ./beacon_node.sh <DATADIR> <NETWORK-PORT> <HTTP-PORT> <OPTIONAL-DEBUG-LEVEL>
source ./vars.env
DEBUG_LEVEL=${4:-info}
exec lighthouse \
--debug-level $DEBUG_LEVEL \
bn \
--datadir $1 \
--testnet-dir $TESTNET_DIR \
--staking \
--enr-address 127.0.0.1 \
--enr-udp-port $2 \
--enr-tcp-port $2 \
--port $2 \
--http-port $3 \
--target-peers $((NODE_COUNT - 1))