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
|
|
|
|
2023-04-11 10:51:03 +00:00
|
|
|
CERC_L1_RPC="${CERC_L1_RPC:-${DEFAULT_CERC_L1_RPC}}"
|
|
|
|
|
2023-04-25 05:11:47 +00:00
|
|
|
# Get Sequencer key from keys.json
|
2023-04-03 07:03:47 +00:00
|
|
|
SEQUENCER_KEY=$(jq -r '.Sequencer.privateKey' /l2-accounts/keys.json | tr -d '"')
|
|
|
|
|
2023-04-25 05:11:47 +00:00
|
|
|
# Run op-node
|
2023-04-03 07:03:47 +00:00
|
|
|
op-node \
|
|
|
|
--l2=http://op-geth:8551 \
|
2023-04-03 12:43:29 +00:00
|
|
|
--l2.jwt-secret=/op-node-data/jwt.txt \
|
2023-04-03 07:03:47 +00:00
|
|
|
--sequencer.enabled \
|
|
|
|
--sequencer.l1-confs=3 \
|
|
|
|
--verifier.l1-confs=3 \
|
2023-04-03 12:43:29 +00:00
|
|
|
--rollup.config=/op-node-data/rollup.json \
|
2023-04-03 07:03:47 +00:00
|
|
|
--rpc.addr=0.0.0.0 \
|
|
|
|
--rpc.port=8547 \
|
|
|
|
--p2p.disable \
|
|
|
|
--rpc.enable-admin \
|
|
|
|
--p2p.sequencer.key=$SEQUENCER_KEY \
|
2023-04-11 10:51:03 +00:00
|
|
|
--l1=$CERC_L1_RPC \
|
2023-04-03 07:03:47 +00:00
|
|
|
--l1.rpckind=any
|