Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion run-testnet-sentry.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/sh
#script for sentry entrypoint
set -exu

GETH_DATA_DIR="${GETH_DATA_DIR:-/data/morphism/setup/geth-data}"
JWT_SECRET_PATH="${JWT_SECRET_PATH:-/data/morphism/setup/jwt-secret.txt}"
DEFAULE_MINER_ETHERBASE="0x0e87cd091e091562F25CB1cf4641065dA2C049F5"
Expand Down Expand Up @@ -36,4 +40,4 @@ COMMAND="geth \
--mine \
--miner.etherbase=$MINER_ETHERBASE $optional_bootnodes"

nohup $COMMAND > $GETH_LOG_FILE 2>&1 &
$COMMAND
6 changes: 5 additions & 1 deletion run-testnet.sh → run-testnet-sequencer.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/sh
#script for sequencer entrypoint
set -exu

GETH_DATA_DIR="${GETH_DATA_DIR:-/data/morphism/setup/geth-data}"
JWT_SECRET_PATH="${JWT_SECRET_PATH:-/data/morphism/setup/jwt-secret.txt}"
DEFAULE_MINER_ETHERBASE="0x0e87cd091e091562F25CB1cf4641065dA2C049F5"
Expand Down Expand Up @@ -36,4 +40,4 @@ COMMAND="geth \
--mine \
--miner.etherbase=$MINER_ETHERBASE $optional_bootnodes"

nohup $COMMAND > $GETH_LOG_FILE 2>&1 &
$COMMAND
43 changes: 43 additions & 0 deletions run-testnet-validator.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/sh
#script for validator entrypoint
set -exu

GETH_DATA_DIR="${GETH_DATA_DIR:-/data/morphism/setup/geth-data}"
JWT_SECRET_PATH="${JWT_SECRET_PATH:-/data/morphism/setup/jwt-secret.txt}"
DEFAULE_MINER_ETHERBASE="0x0e87cd091e091562F25CB1cf4641065dA2C049F5"
CHAIN_ID="${CHAIN_ID:-2710}"
GETH_LOG_FILE="${GETH_LOG_FILE:-/data/logs/geth.log}"

if [[ -z "$MINER_ETHERBASE" ]]; then
# the environment variable is missing, set a default value
MINER_ETHERBASE=$DEFAULE_MINER_ETHERBASE
fi

optional_bootnodes=${BOOT_NODES:+"--bootnodes=$BOOT_NODES"}

# shellcheck disable=SC2125
COMMAND="geth \
--datadir="$GETH_DATA_DIR" \
--verbosity=3 \
--http \
--http.corsdomain="*" \
--http.vhosts="*" \
--http.addr=0.0.0.0 \
--http.port=8545 \
--http.api=web3,eth,txpool,net,engine \
--ws \
--ws.addr=0.0.0.0 \
--ws.port=8546 \
--ws.origins="*" \
--ws.api=web3,eth,txpool,net,engine \
--networkid=$CHAIN_ID \
--authrpc.addr="0.0.0.0" \
--authrpc.port="8551" \
--authrpc.vhosts="*" \
--authrpc.jwtsecret=$JWT_SECRET_PATH \
--gcmode=archive \
--metrics \
--mine \
--miner.etherbase=$MINER_ETHERBASE $optional_bootnodes"

$COMMAND