Skip to content

Commit 78b3263

Browse files
author
Michael de Hoog
authored
Bump optimism deps + misc improvements (#56)
* Bump optimism deps * Switch OP_NODE_VERIFIER_L1_CONFS to 4 * Enable metrics * Support pre-155 transactions
1 parent d889e70 commit 78b3263

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ FROM golang:1.19 as op
44
WORKDIR /app
55

66
ENV REPO=https://github.com/ethereum-optimism/optimism
7-
ENV COMMIT=09d23ee8995b7c318a4469a49276f9453535c6a9
8-
ENV CHECKSUM=593338d48967154182d07920fcaf51d18e8c6adb64485356b059e1a1f82fe941
7+
ENV COMMIT=a541c8a859d9258ad410598655f189de69adae19
8+
ENV CHECKSUM=a61e4e921c4ee83650eeff59d73aeae328b38728d54b2f4fd7f9387ef713b8a9
99
ADD --checksum=sha256:$CHECKSUM $REPO/archive/$COMMIT.tar.gz ./
1010

1111
RUN tar -xvf ./$COMMIT.tar.gz --strip-components=1 && \
@@ -17,8 +17,8 @@ FROM golang:1.19 as geth
1717
WORKDIR /app
1818

1919
ENV REPO=https://github.com/ethereum-optimism/op-geth
20-
ENV COMMIT=a84992a3b7c33f038ccc69e761bafeefcd605fd3
21-
ENV CHECKSUM=8d97c1292c67afb08c124fc1f6586f92ec127464e04749b80eed709de145df17
20+
ENV COMMIT=b5fecf58ec77909c70bd15b96b32b593af0b38ff
21+
ENV CHECKSUM=009ec82e9be9a8a444a4a587ded844c7336ed6c80c9029e9acd912578a477b0f
2222
ADD --checksum=sha256:$CHECKSUM $REPO/archive/$COMMIT.tar.gz ./
2323

2424
RUN tar -xvf ./$COMMIT.tar.gz --strip-components=1 && \

docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ services:
55
- 8545:8545
66
- 8546:8546
77
- 30303:30303
8+
- 7301:6060 # metrics
89
command: [ "sh", "./geth-entrypoint" ]
910
volumes:
1011
- "./geth-data:/data"
1112
environment:
1213
- OP_GETH_GENESIS_FILE_PATH=goerli/genesis-l2.json
13-
- OP_GETH_SEQUENCER_HTTP=https://goerli.base.org
14+
- OP_GETH_SEQUENCER_HTTP=https://goerli-sequencer.base.org
1415
- OP_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt
1516
- OP_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a # for localdev only
1617
# - OP_GETH_ETH_STATS=nodename:secret@host:port # optional
@@ -42,7 +43,7 @@ services:
4243
- OP_NODE_RPC_ADDR=0.0.0.0
4344
- OP_NODE_RPC_PORT=8545
4445
- OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log
45-
- OP_NODE_VERIFIER_L1_CONFS=0
46+
- OP_NODE_VERIFIER_L1_CONFS=4
4647
# OP_NODE_L1_TRUST_RPC allows for faster syncing, but should be used *only* if your L1 RPC node
4748
# is fully trusted. It also allows op-node to work with clients such as Erigon that do not
4849
# support storage proofs.

geth-entrypoint

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CHAIN_ID=$(jq -r .config.chainId < "$OP_GETH_GENESIS_FILE_PATH")
99
RPC_PORT="${RPC_PORT:-8545}"
1010
WS_PORT="${WS_PORT:-8546}"
1111
AUTHRPC_PORT="${AUTHRPC_PORT:-8551}"
12+
METRICS_PORT="${METRICS_PORT:-6060}"
1213
HOST_IP="0.0.0.0"
1314
ADDITIONAL_ARGS=""
1415

@@ -30,6 +31,10 @@ if [ "${OP_GETH_ETH_STATS+x}" = x ]; then
3031
ADDITIONAL_ARGS="$ADDITIONAL_ARGS --ethstats=$OP_GETH_ETH_STATS"
3132
fi
3233

34+
if [ "${OP_GETH_ALLOW_UNPROTECTED_TXS+x}" = x ]; then
35+
ADDITIONAL_ARGS="$ADDITIONAL_ARGS --rpc.allow-unprotected-txs=$OP_GETH_ALLOW_UNPROTECTED_TXS"
36+
fi
37+
3338
./geth \
3439
--datadir="$GETH_DATA_DIR" \
3540
--verbosity="$VERBOSITY" \
@@ -48,6 +53,9 @@ fi
4853
--ws.port="$WS_PORT" \
4954
--ws.origins="*" \
5055
--ws.api=debug,eth,txpool,net,engine \
56+
--metrics \
57+
--metrics.addr=0.0.0.0 \
58+
--metrics.port="$METRICS_PORT" \
5159
--syncmode=full \
5260
--gcmode=archive \
5361
--nodiscover \

0 commit comments

Comments
 (0)