Skip to content

Commit 3413e3c

Browse files
authored
Merge pull request #182 from Chomtana/main
Updating l2geth starting script according to latest docs
2 parents 17ec659 + 8bbfd23 commit 3413e3c

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

scripts/start-l2geth.sh

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,15 @@ if [ -n "${OP_GETH__HISTORICAL_RPC}" ]; then
1111
exit
1212
fi
1313

14+
# l2geth new standard env variables
15+
export USING_OVM=true
16+
export ETH1_SYNC_SERVICE_ENABLE=false
17+
export RPC_API=eth,rollup,net,web3,debug
18+
export RPC_ADDR=0.0.0.0
19+
export RPC_CORS_DOMAIN=*
20+
export RPC_ENABLE=true
21+
export RPC_PORT=8545
22+
export RPC_VHOSTS=*
23+
1424
# Start l2geth.
15-
exec geth \
16-
--vmodule=eth/*=5,miner=4,rpc=5,rollup=4,consensus/clique=1 \
17-
--datadir=$DATADIR \
18-
--password=$DATADIR/password \
19-
--allow-insecure-unlock \
20-
--unlock=$BLOCK_SIGNER_ADDRESS \
21-
--mine \
22-
--miner.etherbase=$BLOCK_SIGNER_ADDRESS \
23-
--gcmode=$NODE_TYPE \
24-
--metrics \
25-
--metrics.influxdb \
26-
--metrics.influxdb.endpoint=http://influxdb:8086 \
27-
--metrics.influxdb.database=l2geth \
28-
$@
25+
exec geth --datadir=$DATADIR $@

0 commit comments

Comments
 (0)