#!/bin/bash <" echo "--peers=" echo "--validator-keys=" echo "--gen-state=" echo "--port=" } while [ "$1" != "" ]; do PARAM=`echo $1 | awk -F= '{print $1}'` VALUE=`echo $1 | sed 's/^[^=]*=//g'` case $PARAM in --identity) IDENTITY=$VALUE ;; --peers) PEERS+=",$VALUE" ;; --validator-keys) VALIDATOR_KEYS=$VALUE ;; --gen-state) GEN_STATE=$VALUE ;; --port) PORT=$VALUE ;; --help) usage exit ;; *) echo "ERROR: unknown parameter \"$PARAM\"" usage exit 1 ;; esac shift done ./beacon_node \ --p2p-priv-key $IDENTITY \ --logfile $BEACON_LOG_FILE \ --libp2p-addresses $PEERS \ --port $PORT \ testnet \ --force \ file \ ssz \ $GEN_STATE \ & \ ./validator_client \ --logfile $VALIDATOR_LOG_FILE \ testnet \ --bootstrap \ interop-yaml \ $YAML_KEY_FILE \ trap 'trap - SIGTERM && kill 0' SIGINT SIGTERM EXIT