This commit is contained in:
Sebastian
2024-03-14 04:57:11 +01:00
parent e60eaa48ad
commit f34cc18025
4 changed files with 16 additions and 17 deletions

View File

@@ -2,7 +2,8 @@ version: '3.1'
services: services:
op-lisk-sepolia: # this is Optimism's geth client op-lisk-sepolia: # this is Optimism's geth client
image: stakesquid/op-lisk-sepolia:v0.1 #image: stakesquid/op-lisk-sepolia:v0.1
build: ./op
expose: expose:
- 8545 # RPC / Websocket - 8545 # RPC / Websocket
- 54521 # P2P TCP (currently unused) - 54521 # P2P TCP (currently unused)
@@ -42,7 +43,8 @@ uDdWRwgiMr"
op-lisk-sepolia-node: op-lisk-sepolia-node:
image: stakesquid/op-lisk-sepolia:v0.1 # image: stakesquid/op-lisk-sepolia:v0.1
build: ./op
depends_on: depends_on:
- op-lisk-sepolia - op-lisk-sepolia
expose: expose:
@@ -79,6 +81,7 @@ uDdWRwgiMr"
- "OP_NODE_VERIFIER_L1_CONFS=4" - "OP_NODE_VERIFIER_L1_CONFS=4"
- "OP_NODE_L1_RPC_KIND=${ETHEREUM_SEPOLIA_ENDPOINT_KIND:-basic}" - "OP_NODE_L1_RPC_KIND=${ETHEREUM_SEPOLIA_ENDPOINT_KIND:-basic}"
- "OP_NODE_L1_TRUST_RPC=${ETHEREUM_SEPLIA_ENDPOINT_TRUST:-false}" - "OP_NODE_L1_TRUST_RPC=${ETHEREUM_SEPLIA_ENDPOINT_TRUST:-false}"
- "OP_NODE_L1_BEACON=${ETHEREUM_SEPOLIA_BEACON_URL}"
networks: networks:
- chains - chains

View File

@@ -1,36 +1,33 @@
FROM golang:1.20 as op FROM golang:1.21 as op
WORKDIR /app WORKDIR /app
ENV REPO=https://github.com/ethereum-optimism/optimism.git ENV REPO=https://github.com/ethereum-optimism/optimism.git
ENV VERSION=v1.4.2 ENV VERSION=v1.7.1
# for verification: # for verification:
ENV COMMIT=f2229b8b955e53408be0775a22d7f9f162b0de66
RUN git clone $REPO --branch op-node/$VERSION --single-branch . && \ RUN git clone $REPO --branch op-node/$VERSION --single-branch . && \
git switch -c branch-$VERSION && \ git switch -c branch-$VERSION
bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'
RUN cd op-node && \ RUN cd op-node && \
make op-node make op-node
FROM golang:1.20 as geth FROM golang:1.21 as geth
WORKDIR /app WORKDIR /app
ENV REPO=https://github.com/ethereum-optimism/op-geth.git ENV REPO=https://github.com/ethereum-optimism/op-geth.git
ENV VERSION=v1.101304.2 ENV VERSION=v1.101308.2
# for verification:
ENV COMMIT=c6b416da212fe6713ff40b8092303d0035405a47
# avoid depth=1, so the geth build can read tags # avoid depth=1, so the geth build can read tags
RUN git clone $REPO --branch $VERSION --single-branch . && \ RUN git clone $REPO --branch $VERSION --single-branch . && \
git switch -c branch-$VERSION && \ git switch -c branch-$VERSION
bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'
RUN go run build/ci.go install -static ./cmd/geth RUN go run build/ci.go install -static ./cmd/geth
FROM golang:1.19 FROM golang:1.21
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y jq curl && \ apt-get install -y jq curl && \

View File

@@ -65,9 +65,7 @@ exec ./geth \
--maxpeers=100 \ --maxpeers=100 \
--nat=extip:$HOST_IP \ --nat=extip:$HOST_IP \
--networkid="$CHAIN_ID" \ --networkid="$CHAIN_ID" \
--op-network="$CHAIN_NAME" \
--rollup.halt=major \ --rollup.halt=major \
--rollup.sequencerhttp="$OP_GETH_SEQUENCER_HTTP" \
--port="$P2P_PORT" \ --port="$P2P_PORT" \
$ADDITIONAL_ARGS # intentionally unquoted $ADDITIONAL_ARGS # intentionally unquoted

View File

@@ -21,6 +21,7 @@
"block_time": 2, "block_time": 2,
"delta_time": 0, "delta_time": 0,
"canyon_time": 0, "canyon_time": 0,
"ecotone_time": 1708534800,
"l1_chain_id": 11155111, "l1_chain_id": 11155111,
"l2_chain_id": 4202, "l2_chain_id": 4202,
"regolith_time": 0, "regolith_time": 0,