Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating l2geth starting script according to latest docs #182

Merged
merged 1 commit into from
Jan 29, 2025
Merged
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
25 changes: 11 additions & 14 deletions scripts/start-l2geth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,15 @@ if [ -n "${OP_GETH__HISTORICAL_RPC}" ]; then
exit
fi

# l2geth new standard env variables
export USING_OVM=true
export ETH1_SYNC_SERVICE_ENABLE=false
export RPC_API=eth,rollup,net,web3,debug
export RPC_ADDR=0.0.0.0
export RPC_CORS_DOMAIN=*
export RPC_ENABLE=true
export RPC_PORT=8545
export RPC_VHOSTS=*

# Start l2geth.
exec geth \
--vmodule=eth/*=5,miner=4,rpc=5,rollup=4,consensus/clique=1 \
--datadir=$DATADIR \
--password=$DATADIR/password \
--allow-insecure-unlock \
--unlock=$BLOCK_SIGNER_ADDRESS \
--mine \
--miner.etherbase=$BLOCK_SIGNER_ADDRESS \
--gcmode=$NODE_TYPE \
--metrics \
--metrics.influxdb \
--metrics.influxdb.endpoint=http://influxdb:8086 \
--metrics.influxdb.database=l2geth \
$@
exec geth --datadir=$DATADIR $@
Loading