Skip to content

Commit

Permalink
Modify start script to allow more configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
poplexity committed Oct 5, 2024
1 parent 84e98e1 commit 69fe2ef
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .env-example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ CHAIN=tevmmainnet
RETH_CONFIG=/path/to/datadir/config.toml
RETH_RPC_ADDRESS=0.0.0.0
RETH_RPC_PORT=8545
RETH_WS_ADDRESS=0.0.0.0
RETH_WS_PORT=8546
RETH_AUTH_RPC_ADDRESS=127.0.0.1
RETH_AUTH_RPC_PORT=8551
RETH_IPCPATH=/path/to/reth.ipc
RETH_DISCOVERY_PORT=30303
TELOS_ENDPOINT=https://mainnet.telos.net
TELOS_SIGNER_ACCOUNT=rpc.evm
TELOS_SIGNER_PERMISSION=rpc
Expand Down
15 changes: 14 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,18 @@ cd $INSTALL_ROOT
[ -z "$DATA_DIR" ] && DATA_DIR=$INSTALL_ROOT/data
[ -z "$CHAIN" ] && CHAIN=tevmmainnet
[ -z "$RETH_CONFIG" ] && RETH_CONFIG=$DATA_DIR/config.toml
[ -z "$RETH_RPC_ADDRESS" ] && RETH_RPC_ADDRESS=
[ -z "$RETH_RPC_ADDRESS" ] && RETH_RPC_ADDRESS=127.0.0.1
[ -z "$RETH_RPC_PORT" ] && RETH_RPC_PORT=8545
[ -z "$RETH_WS_ADDRESS" ] && RETH_WS_ADDRESS=127.0.0.1
[ -z "$RETH_WS_PORT" ] && RETH_WS_PORT=8546
[ -z "$RETH_AUTH_RPC_ADDRESS" ] && RETH_AUTH_RPC_ADDRESS=127.0.0.1
[ -z "$RETH_AUTH_RPC_PORT" ] && RETH_AUTH_RPC_PORT=8551
[ -z "$RETH_IPCPATH" ] && RETH_IPCPATH=$INSTALL_ROOT/reth.ipc
[ -z "$RETH_DISCOVERY_PORT" ] && RETH_DISCOVERY_PORT=30303
[ -z "$LOG_PATH" ] && LOG_PATH=$DATA_DIR/reth.log

nohup $RETH_BIN_PATH node \
--port $RETH_DISCOVERY_PORT \
--log.stdout.filter $LOG_LEVEL \
--datadir $DATA_DIR \
--chain $CHAIN \
Expand All @@ -32,6 +39,12 @@ nohup $RETH_BIN_PATH node \
--http.api all \
--ws \
--ws.api all \
--ws.addr $RETH_WS_ADDRESS \
--ws.port $RETH_WS_PORT \
--authrpc.addr $RETH_AUTH_RPC_ADDRESS \
--authrpc.port $RETH_AUTH_RPC_PORT \
--ipcpath $RETH_IPCPATH \
--discovery.port $RETH_DISCOVERY_PORT \
--telos.telos_endpoint $TELOS_ENDPOINT \
--telos.signer_account $TELOS_SIGNER_ACCOUNT \
--telos.signer_permission $TELOS_SIGNER_PERMISSION \
Expand Down

0 comments on commit 69fe2ef

Please sign in to comment.