fdc6e2aa8e
## Issue Addressed #1494 ## Proposed Changes - Give the TaskExecutor the sender side of a channel that a task can clone to request shutting down - The receiver side of this channel is in environment and now we block until ctrl+c or an internal shutdown signal is received - The swarm now informs when it has reached 0 listeners - The network receives this message and requests the shutdown
22 lines
396 B
Bash
Executable File
22 lines
396 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
#
|
|
# Starts a beacon node based upon a genesis state created by
|
|
# `./local_testnet_genesis_state`.
|
|
#
|
|
|
|
source ./vars.env
|
|
|
|
DEBUG_LEVEL=${1:-info}
|
|
|
|
exec lighthouse \
|
|
--debug-level $DEBUG_LEVEL \
|
|
bn \
|
|
--datadir $BEACON_DIR-2 \
|
|
--testnet-dir $TESTNET_DIR \
|
|
--dummy-eth1 \
|
|
--http \
|
|
--port 9902 \
|
|
--http-port 6052 \
|
|
--boot-nodes $(cat $BEACON_DIR/beacon/network/enr.dat)
|