Don't create a separate bootstrap_node binary

This commit is contained in:
Zahary Karadjov 2020-03-23 12:51:04 +02:00 committed by zah
parent 232d07467f
commit 14cffdea99
3 changed files with 1 additions and 10 deletions

View File

@ -47,13 +47,8 @@ fi
rm -rf "$DATA_DIR/dump"
mkdir -p "$DATA_DIR/dump"
NODE_BIN=$BEACON_NODE_BIN
if [[ $NODE_ID == $MASTER_NODE ]]; then
NODE_BIN=$BOOTSTRAP_NODE_BIN
fi
# if you want tracing messages, add "--log-level=TRACE" below
cd "$DATA_DIR" && $NODE_BIN \
cd "$DATA_DIR" && $BEACON_NODE_BIN \
--log-level=${LOG_LEVEL:-DEBUG} \
--bootstrap-file=$BOOTSTRAP_ADDRESS_FILE \
--data-dir=$DATA_DIR \

View File

@ -41,9 +41,6 @@ build_beacon_node () {
build_beacon_node $BEACON_NODE_BIN
# DAEMON TODO: This copy is now unnecessary
cp $BEACON_NODE_BIN $BOOTSTRAP_NODE_BIN
if [ ! -f "${LAST_VALIDATOR}" ]; then
echo Building $DEPLOY_DEPOSIT_CONTRACT_BIN
$MAKE NIMFLAGS="-o:\"$DEPLOY_DEPOSIT_CONTRACT_BIN\" $CUSTOM_NIMFLAGS $DEFS" deposit_contract

View File

@ -31,7 +31,6 @@ VALIDATORS_DIR="${SIM_ROOT}/validators"
SNAPSHOT_FILE="${SIMULATION_DIR}/state_snapshot.ssz"
NETWORK_BOOTSTRAP_FILE="${SIMULATION_DIR}/bootstrap_nodes.txt"
BEACON_NODE_BIN="${SIMULATION_DIR}/beacon_node"
BOOTSTRAP_NODE_BIN="${SIMULATION_DIR}/bootstrap_node"
DEPLOY_DEPOSIT_CONTRACT_BIN="${SIMULATION_DIR}/deploy_deposit_contract"
MASTER_NODE_PID_FILE="${SIMULATION_DIR}/node-${MASTER_NODE}/beacon_node.pid"