add optimism

This commit is contained in:
Sebastian
2023-01-05 16:45:31 +01:00
parent c8552100f8
commit 6d8324ded8
6 changed files with 177 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#!/bin/sh
set -eou
# Set rollup backend to match sync source
export ROLLUP_BACKEND=$SYNC_SOURCE
# Run geth
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 \
$@