24 lines
571 B
Bash
Executable File
24 lines
571 B
Bash
Executable File
#!/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.addr=0.0.0.0 \
|
|
--metrics.port=6060 \
|
|
# --metrics.influxdb \
|
|
# --metrics.influxdb.endpoint=http://influxdb:8086 \
|
|
# --metrics.influxdb.database=l2geth \
|
|
$@
|