Update startup scripts

This commit is contained in:
David Boreham 2023-07-21 16:25:20 -06:00
parent f1e68233dd
commit 285a382618
2 changed files with 10 additions and 37 deletions

View File

@ -25,34 +25,19 @@ cleanup() {
$START_CMD \ $START_CMD \
--datadir="${CERC_ETH_DATADIR}" \ --datadir="${CERC_ETH_DATADIR}" \
--allow-insecure-unlock \
--http \
--http.addr="0.0.0.0" \
--http.vhosts="*" \
--http.api="${CERC_GETH_HTTP_APIS:-eth,web3,net,admin,personal,debug,statediff}" \
--http.corsdomain="*" \
--authrpc.addr="0.0.0.0" \ --authrpc.addr="0.0.0.0" \
--authrpc.port 8551 \
--authrpc.vhosts="*" \ --authrpc.vhosts="*" \
--authrpc.jwtsecret="/opt/testnet/build/el/jwtsecret" \ --authrpc.jwtsecret="/etc/mainnet-eth/jwtsecret" \
--ws \ --ws \
--ws.addr="0.0.0.0" \ --ws.addr="0.0.0.0" \
--ws.origins="*" \ --ws.origins="*" \
--ws.api="${CERC_GETH_WS_APIS:-eth,web3,net,admin,personal,debug,statediff}" \ --ws.api="${CERC_GETH_WS_APIS:-eth,web3,net,admin,personal,debug,statediff}" \
--http.corsdomain="*" \ --http.corsdomain="*" \
--networkid="${NETWORK_ID}" \ --gcmode full \
--netrestrict="${NETRESTRICT}" \
--gcmode archive \
--txlookuplimit=0 \ --txlookuplimit=0 \
--cache.preimages \ --cache.preimages \
--syncmode=full \ --syncmode=snap \
--mine \
--miner.threads=1 \
--metrics \
--metrics.addr="0.0.0.0" \
--verbosity=${CERC_GETH_VERBOSITY:-3} \
--log.vmodule="${CERC_GETH_VMODULE:-statediff/*=5}" \
--miner.etherbase="${ETHERBASE}" \
${STATEDIFF_OPTS} \
& &
geth_pid=$! geth_pid=$!

View File

@ -5,8 +5,8 @@ fi
DEBUG_LEVEL=${CERC_LIGHTHOUSE_DEBUG_LEVEL:-info} DEBUG_LEVEL=${CERC_LIGHTHOUSE_DEBUG_LEVEL:-info}
# Get positional arguments data_dir=/var/lighthouse-data-dir
data_dir=$DATADIR/node_${NODE_NUMBER}
network_port=9001 network_port=9001
http_port=8001 http_port=8001
authrpc_port=8551 authrpc_port=8551
@ -14,21 +14,9 @@ authrpc_port=8551
exec lighthouse \ exec lighthouse \
bn \ bn \
--debug-level $DEBUG_LEVEL \ --debug-level $DEBUG_LEVEL \
--boot-nodes "$ENR" \
--datadir $data_dir \ --datadir $data_dir \
--testnet-dir $TESTNET_DIR \ --network mainnet \
--enable-private-discovery \
--staking \
--enr-address $ENR_IP \
--enr-udp-port $network_port \
--enr-tcp-port $network_port \
--port $network_port \
--http-address 0.0.0.0 \
--http-port $http_port \
--disable-packet-filter \
--execution-endpoint $EXECUTION_ENDPOINT \ --execution-endpoint $EXECUTION_ENDPOINT \
--execution-jwt $JWTSECRET \ --execution-jwt /etc/mainnet-eth/jwtsecret \
--terminal-total-difficulty-override $ETH1_TTD \ --disable-deposit-contract-sync \
--suggested-fee-recipient $SUGGESTED_FEE_RECIPIENT \ --checkpoint-sync-url https://mainnet.checkpoint.sigp.io
--target-peers $((BN_COUNT - 1)) \
--http-allow-sync-stalled \