2023-04-03 07:03:47 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
2023-04-04 09:23:28 +00:00
|
|
|
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
2023-04-03 07:03:47 +00:00
|
|
|
|
|
|
|
# Get BACTHER_KEY from keys.json
|
|
|
|
BATCHER_KEY=$(jq -r '.Batcher.privateKey' /l2-accounts/keys.json | tr -d '"')
|
|
|
|
|
|
|
|
op-batcher \
|
|
|
|
--l2-eth-rpc=http://op-geth:8545 \
|
|
|
|
--rollup-rpc=http://op-node:8547 \
|
|
|
|
--poll-interval=1s \
|
|
|
|
--sub-safety-margin=6 \
|
|
|
|
--num-confirmations=1 \
|
|
|
|
--safe-abort-nonce-too-low-count=3 \
|
|
|
|
--resubmission-timeout=30s \
|
|
|
|
--rpc.addr=0.0.0.0 \
|
|
|
|
--rpc.port=8548 \
|
|
|
|
--rpc.enable-admin \
|
|
|
|
--max-channel-duration=1 \
|
|
|
|
--target-l1-tx-size-bytes=2048 \
|
|
|
|
--l1-eth-rpc=$L1_RPC \
|
|
|
|
--private-key=$BATCHER_KEY
|