From 517f44d8e1b5d1dbbc0b3dc7cc3899e248bf37c1 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sun, 9 Mar 2025 12:00:38 +0100 Subject: [PATCH 01/59] update --- op-zircuit-testnet.yml | 4 ++-- zircuit/testnet/genesis.json | 4 +++- zircuit/testnet/rollup.json | 5 ++++- 3 files changed, 9 insertions(+), 4 deletions(-) mode change 100755 => 100644 zircuit/testnet/genesis.json diff --git a/op-zircuit-testnet.yml b/op-zircuit-testnet.yml index 91814268..aa62411a 100644 --- a/op-zircuit-testnet.yml +++ b/op-zircuit-testnet.yml @@ -1,6 +1,6 @@ services: op-zircuit-testnet-client: - image: zircuit1/l2-geth:${ZIRCUIT_TESTNET_VERSION:-8ea4db5d6e952f63c2912d2794bbfd8eda55f471} + image: zircuit1/l2-geth:${ZIRCUIT_TESTNET_VERSION:-e81568966f2a42a57b1347fb1dffdd5257dde73a} volumes: - "op-zircuit-testnet:/db" - "./zircuit/testnet/genesis.json:/genesis.json" @@ -53,7 +53,7 @@ services: op-zircuit-testnet-node: depends_on: - op-zircuit-testnet-client - image: zircuit1/op-node:${ZIRCUIT_TESTNET_VERSION:-8ea4db5d6e952f63c2912d2794bbfd8eda55f471} + image: zircuit1/op-node:${ZIRCUIT_TESTNET_VERSION:-e81568966f2a42a57b1347fb1dffdd5257dde73a} ports: - "20209:20209" - "20209:20209/udp" diff --git a/zircuit/testnet/genesis.json b/zircuit/testnet/genesis.json old mode 100755 new mode 100644 index 429eda63..9840ad51 --- a/zircuit/testnet/genesis.json +++ b/zircuit/testnet/genesis.json @@ -29,7 +29,9 @@ }, "canyonTime": 1711297396, "shanghaiTime": 1711297396, - "ecotoneTime": 1720008000 + "ecotoneTime": 1720008000, + "monoFeeBlock": 20829888, + "cancunTime": 1741557600 }, "nonce": "0x0", "timestamp": "0x655261e0", diff --git a/zircuit/testnet/rollup.json b/zircuit/testnet/rollup.json index 01254894..e3ec24b9 100644 --- a/zircuit/testnet/rollup.json +++ b/zircuit/testnet/rollup.json @@ -29,5 +29,8 @@ "canyon_time": 1711297396, "delta_time": 1720008000, "ecotone_time": 1720008000, - "protocol_versions_address": "0x0000000000000000000000000000000000000000" + "protocol_versions_address": "0x0000000000000000000000000000000000000000", + "hyrax_time": 1741557600, + "l2cancun_time": 1741557600, + "prevrandao_disabling_time": 1741557600 } From e564e13631cfa4e16a81fca21b408cf77c2899c2 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Mon, 10 Mar 2025 13:51:35 +0100 Subject: [PATCH 02/59] do not stop the rpc --- thundercore/mainnet/override.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thundercore/mainnet/override.yaml b/thundercore/mainnet/override.yaml index a9e695d1..f4f5aa56 100644 --- a/thundercore/mainnet/override.yaml +++ b/thundercore/mainnet/override.yaml @@ -33,7 +33,7 @@ rpc: - net - web3 maxDelayBlock: 120 - suspendBuffer: 60s + suspendBuffer: 31622400s logs: blockRange: -1 logRequests: True @@ -65,4 +65,4 @@ profiling: port: 9998 resourceMonitor: enable: true - interval: 10s \ No newline at end of file + interval: 10s From 45c1bdf475bcb527edf560910c302bdf900fea8d Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Mon, 10 Mar 2025 14:07:16 +0100 Subject: [PATCH 03/59] update --- drpc-free.yml | 2 +- drpc.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drpc-free.yml b/drpc-free.yml index 1e6753bf..6da50bd0 100644 --- a/drpc-free.yml +++ b/drpc-free.yml @@ -2,7 +2,7 @@ version: '3.1' services: dshackle-free: - image: drpcorg/dshackle:0.64.3 + image: drpcorg/dshackle:${DRPC_VERSION:-0.64.3} restart: unless-stopped volumes: - ./free_configs:/etc/dshackle diff --git a/drpc.yml b/drpc.yml index a79d773b..c1401ba2 100644 --- a/drpc.yml +++ b/drpc.yml @@ -2,7 +2,7 @@ version: '3.1' services: dshackle: - image: drpcorg/dshackle:0.64.3 + image: drpcorg/dshackle:${DRPC_VERSION:-0.64.3} restart: unless-stopped volumes: - ./main_configs:/etc/dshackle From fff0810a36eca4f1282d042c5d663977444905ff Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Mon, 10 Mar 2025 14:09:07 +0100 Subject: [PATCH 04/59] update --- op-lisk-sepolia.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/op-lisk-sepolia.yml b/op-lisk-sepolia.yml index 5d3e48a5..181de32c 100644 --- a/op-lisk-sepolia.yml +++ b/op-lisk-sepolia.yml @@ -5,10 +5,10 @@ services: build: context: ./op dockerfile: Dockerfile - args: - OP_VERSION: v1.10.2 - OP_PATCH: sepolia/lisk/op-node.patch - GETH_VERSION: v1.101411.4 + #args: + # OP_VERSION: v1.10.2 + # OP_PATCH: sepolia/lisk/op-node.patch + # GETH_VERSION: v1.101411.4 expose: - 8545 # RPC / Websocket - 54521 # P2P TCP (currently unused) @@ -58,10 +58,10 @@ uDdWRwgiMr" build: context: ./op dockerfile: Dockerfile - args: - OP_VERSION: v1.10.2 - OP_PATCH: sepolia/lisk/op-node.patch - GETH_VERSION: v1.101411.4 + #args: + # OP_VERSION: v1.10.2 + # OP_PATCH: sepolia/lisk/op-node.patch + # GETH_VERSION: v1.101411.4 depends_on: - op-lisk-sepolia expose: From 347795ea5c5d1eebb1eeddddf7b795bc24b1b38e Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Mon, 10 Mar 2025 14:20:31 +0100 Subject: [PATCH 05/59] pectra time --- op-lisk-sepolia.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/op-lisk-sepolia.yml b/op-lisk-sepolia.yml index 181de32c..65e140bf 100644 --- a/op-lisk-sepolia.yml +++ b/op-lisk-sepolia.yml @@ -39,7 +39,8 @@ services: - "GETH_OVERRIDE_ECOTONE=1708534800" - "GETH_OVERRIDE_FJORD=1716998400" - "GETH_OVERRIDE_GRANITE=1723478400" - - "GETH_OVERRIDE_HOLOCENE=1732633200" + - "GETH_OVERRIDE_HOLOCENE=1732633200" + - "GETH_OVERRIDE_PECTRA=1741159776" - "GETH_BOOTNODES=enr:-Iu4QI5BdaTmfMhNKXd-vSniNRSCXk-a3m3nQbe9TCV3puGtCr6FvX6-Vr0Uvx4tYVilGCIYdQNf6fK8O2MKxVqjYJ8BgmlkgnY0gmlwhCKN6PiJc2VjcDI1NmsxoQLBQIaRwlvNxrRKcGtxKmh4JS_orkawS44D4KIORICoi4N0Y3CCIy\ uDdWRwgiMr" labels: @@ -113,6 +114,7 @@ uDdWRwgiMr" - "OP_NODE_OVERRIDE_FJORD=1716998400" - "OP_NODE_OVERRIDE_GRANITE=1723478400" - "OP_NODE_OVERRIDE_HOLOCENE=1732633200" + - "OP_NODE_OVERRICE_PECTRA=1741159776" networks: - chains From 209af925bdd0e1186228efd20faf13647c839716 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Mon, 10 Mar 2025 14:24:45 +0100 Subject: [PATCH 06/59] update --- nodeexporter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodeexporter.yml b/nodeexporter.yml index edca3544..a7221f51 100644 --- a/nodeexporter.yml +++ b/nodeexporter.yml @@ -1,6 +1,6 @@ services: nodeexporter: - image: prom/node-exporter:v1.2.2 + image: prom/node-exporter:v1.3.1 container_name: nodeexporter volumes: - /proc:/host/proc:ro From b5b375e9831a29ae107c413407dd2264882596fa Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Wed, 12 Mar 2025 08:01:46 +0100 Subject: [PATCH 07/59] update --- op-zircuit-mainnet.yml | 4 ++-- zircuit/mainnet/genesis.json | 5 +++-- zircuit/mainnet/rollup.json | 6 ++++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/op-zircuit-mainnet.yml b/op-zircuit-mainnet.yml index 806e3458..a4bb54d9 100644 --- a/op-zircuit-mainnet.yml +++ b/op-zircuit-mainnet.yml @@ -1,6 +1,6 @@ services: op-zircuit-client: - image: zircuit1/l2-geth:94186328850b5def97c195a2737c1d28265ef74b + image: zircuit1/l2-geth:e81568966f2a42a57b1347fb1dffdd5257dde73a volumes: - "op-zircuit:/db" - "./zircuit/mainnet/genesis.json:/genesis.json" @@ -54,7 +54,7 @@ services: op-zircuit-node: depends_on: - op-zircuit-client - image: zircuit1/op-node:94186328850b5def97c195a2737c1d28265ef74b + image: zircuit1/op-node:e81568966f2a42a57b1347fb1dffdd5257dde73a ports: - "43778:43778" - "43778:43778/udp" diff --git a/zircuit/mainnet/genesis.json b/zircuit/mainnet/genesis.json index 9ba81784..ab72a746 100644 --- a/zircuit/mainnet/genesis.json +++ b/zircuit/mainnet/genesis.json @@ -20,6 +20,8 @@ "regolithTime": 0, "canyonTime": 0, "ecotoneTime": 0, + "monoFeeBlock": 10895293, + "cancunTime": 1741726801, "terminalTotalDifficulty": 0, "terminalTotalDifficultyPassed": true, "optimism": { @@ -15324,5 +15326,4 @@ "baseFeePerGas": "0x3b9aca00", "excessBlobGas": null, "blobGasUsed": null -} - +} \ No newline at end of file diff --git a/zircuit/mainnet/rollup.json b/zircuit/mainnet/rollup.json index cc5b3ee4..8dfaf98d 100644 --- a/zircuit/mainnet/rollup.json +++ b/zircuit/mainnet/rollup.json @@ -26,9 +26,11 @@ "canyon_time": 0, "delta_time": 0, "ecotone_time": 0, + "hyrax_time": 1741726801, + "l2cancun_time": 1741726801, + "prevrandao_disabling_time": 1741726801, "batch_inbox_address": "0xff00000000000000000000000000000000048900", "deposit_contract_address": "0x17bfafa932d2e23bd9b909fd5b4d2e2a27043fb1", "l1_system_config_address": "0x30f82a1ca89226e8b8815d6ebb728e3b18a428ff", "protocol_versions_address": "0x0000000000000000000000000000000000000000" -} - +} \ No newline at end of file From 08da99d3c7f07129c4cbdfda50b8119adf286ae8 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Wed, 12 Mar 2025 08:25:59 +0100 Subject: [PATCH 08/59] for trigger --- op-zircuit-mainnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-zircuit-mainnet.yml b/op-zircuit-mainnet.yml index a4bb54d9..8e7a1a80 100644 --- a/op-zircuit-mainnet.yml +++ b/op-zircuit-mainnet.yml @@ -15,7 +15,7 @@ services: - "--rollup.disabletxpoolgossip=true" - "--http.api=eth,net,web3,debug" environment: - FORK_TRIGGER: "false" + FORK_TRIGGER: "true" ETH_STATS_ENABLED: 1 ETH_STATS_NODE: "d${DOMAIN}" ETH_STATS_SERVER: ethstats-ap.mainnet.zircuit.com From a71e239cf8e12ddaeac48088f199d1be9f26fa89 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Thu, 13 Mar 2025 16:24:30 +0100 Subject: [PATCH 09/59] add method --- op-zircuit-mainnet.cfg | 1 + op-zircuit-testnet.cfg | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 op-zircuit-testnet.cfg diff --git a/op-zircuit-mainnet.cfg b/op-zircuit-mainnet.cfg index f77e35da..428b8fb8 100644 --- a/op-zircuit-mainnet.cfg +++ b/op-zircuit-mainnet.cfg @@ -11,6 +11,7 @@ - name: txpool_content - name: zirc_getQuarantineHistory - name: zirc_getQuarantined + - name: zirc_isQuarantined connection: generic: rpc: diff --git a/op-zircuit-testnet.cfg b/op-zircuit-testnet.cfg new file mode 100644 index 00000000..428b8fb8 --- /dev/null +++ b/op-zircuit-testnet.cfg @@ -0,0 +1,22 @@ + - id: ${ID} + chain: ${CHAIN} + labels: + provider: ${PROVIDER} + method-groups: + enabled: + - debug + - filter + methods: + enabled: + - name: txpool_content + - name: zirc_getQuarantineHistory + - name: zirc_getQuarantined + - name: zirc_isQuarantined + connection: + generic: + rpc: + url: "${RPC_URL}" + ws: + frameSize: 20Mb + msgSize: 50Mb + url: "${WS_URL}" From 15f59e61c493ac5685517037987e29883a411a8e Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Fri, 14 Mar 2025 11:35:37 +0100 Subject: [PATCH 10/59] update --- op-celo-alfajores-fullnode.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index c684f449..ba440ee9 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -1,13 +1,13 @@ services: init: - image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-geth@sha256:13fa55221309e4e453fd8c383d51aa6d065695f14a64ab25c85aa7d9301173e0 + image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-geth::celo-v2.0.0-rc4 volumes: - "op-celo-alfajores-fullnode:/datadir" - "./celo/alfajores:/config" command: init --datadir /datadir /config/genesis.json op-celo-alfajores-fullnode: - image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-geth@sha256:13fa55221309e4e453fd8c383d51aa6d065695f14a64ab25c85aa7d9301173e0 + image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-geth:celo-v2.0.0-rc4 depends_on: - init volumes: @@ -58,7 +58,7 @@ services: op-celo-alfajores-fullnode-node: - image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-node:celo9 + image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-node:celo-v2.0.0-rc4 depends_on: - op-celo-alfajores-fullnode - op-celo-alfajores-key-generator From 0f08614981a88be0e99989725d7ffbce61255dbe Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Fri, 14 Mar 2025 11:37:41 +0100 Subject: [PATCH 11/59] update --- op-celo-alfajores-fullnode.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index ba440ee9..45f9f810 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -1,6 +1,6 @@ services: init: - image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-geth::celo-v2.0.0-rc4 + image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-geth:celo-v2.0.0-rc4 volumes: - "op-celo-alfajores-fullnode:/datadir" - "./celo/alfajores:/config" From 297eaf68608190a756b441f2431f30bb0d80baf7 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Fri, 14 Mar 2025 11:53:09 +0100 Subject: [PATCH 12/59] do it --- drpc-beacon-proxy-sepolia.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 drpc-beacon-proxy-sepolia.yml diff --git a/drpc-beacon-proxy-sepolia.yml b/drpc-beacon-proxy-sepolia.yml new file mode 100644 index 00000000..d4119f4b --- /dev/null +++ b/drpc-beacon-proxy-sepolia.yml @@ -0,0 +1,18 @@ +services: + drpc-beacon-proxy-sepolia: + build: ./drpc-beacon-proxy/ + expose: + - "80:80" + environment: + DKEY: "${DRPC_API_KEY}" + NETWORK: "sepolia" + labels: + - "traefik.enable=true" + - "traefik.http.middlewares.drpc-beacon-proxy-sepolia-stripprefix.stripprefix.prefixes=/drpc-beacon-proxy-sepolia" + - "traefik.http.services.drpc-beacon-proxy-sepolia.loadbalancer.server.port=80" + - "traefik.http.routers.drpc-beacon-proxy-sepolia.entrypoints=websecure" + - "traefik.http.routers.drpc-beacon-proxy-sepolia.tls.certresolver=myresolver" + - "traefik.http.routers.drpc-beacon-proxy-sepolia.rule=Host(`$DOMAIN`) && PathPrefix(`/drpc-beacon-proxy-sepolia`)" + - "traefik.http.routers.drpc-beacon-proxy-sepolia.middlewares=drpc-beacon-proxy-sepolia-stripprefix, ipwhitelist" + networks: + - chains From 27b2fb4b447436247edd2ddcf718c462f85f865f Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Fri, 14 Mar 2025 12:39:50 +0100 Subject: [PATCH 13/59] fix --- drpc-beacon-proxy-sepolia.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drpc-beacon-proxy-sepolia.yml b/drpc-beacon-proxy-sepolia.yml index d4119f4b..46c5ea09 100644 --- a/drpc-beacon-proxy-sepolia.yml +++ b/drpc-beacon-proxy-sepolia.yml @@ -5,7 +5,7 @@ services: - "80:80" environment: DKEY: "${DRPC_API_KEY}" - NETWORK: "sepolia" + TARGET_URL: https://lb.drpc.org/rest/eth-beacon-chain-sepolia labels: - "traefik.enable=true" - "traefik.http.middlewares.drpc-beacon-proxy-sepolia-stripprefix.stripprefix.prefixes=/drpc-beacon-proxy-sepolia" From 5433c9a8cdc3ad2a345fcc8d22af84f072bf0c4c Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Fri, 14 Mar 2025 12:55:09 +0100 Subject: [PATCH 14/59] pinning version --- op-lisk-sepolia.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/op-lisk-sepolia.yml b/op-lisk-sepolia.yml index 65e140bf..04d7135a 100644 --- a/op-lisk-sepolia.yml +++ b/op-lisk-sepolia.yml @@ -5,10 +5,10 @@ services: build: context: ./op dockerfile: Dockerfile - #args: - # OP_VERSION: v1.10.2 + args: + OP_VERSION: v1.12.0 # OP_PATCH: sepolia/lisk/op-node.patch - # GETH_VERSION: v1.101411.4 + GETH_VERSION: v1.101503.0 expose: - 8545 # RPC / Websocket - 54521 # P2P TCP (currently unused) @@ -59,10 +59,10 @@ uDdWRwgiMr" build: context: ./op dockerfile: Dockerfile - #args: - # OP_VERSION: v1.10.2 - # OP_PATCH: sepolia/lisk/op-node.patch - # GETH_VERSION: v1.101411.4 + args: + OP_VERSION: v1.12.0 + # OP_PATCH: sepolia/lisk/op-node.patch + GETH_VERSION: v1.101503.0 depends_on: - op-lisk-sepolia expose: From 5226085db4b496956c5b5335ba5a7300c0189c8c Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Fri, 14 Mar 2025 13:18:16 +0100 Subject: [PATCH 15/59] add the wheel --- op/Dockerfile.wheel | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 op/Dockerfile.wheel diff --git a/op/Dockerfile.wheel b/op/Dockerfile.wheel new file mode 100644 index 00000000..9703b8af --- /dev/null +++ b/op/Dockerfile.wheel @@ -0,0 +1,20 @@ +# Use an official Golang image as the base +FROM golang:1.20-alpine + +# Set the working directory +WORKDIR /app + +# Install necessary dependencies +RUN apk add --no-cache git make gcc musl-dev + +# Clone the Optimism repository +RUN git clone --depth 1 --branch main https://github.com/ethereum-optimism/optimism.git + +# Navigate to the op-wheel directory +WORKDIR /app/optimism/op-wheel + +# Build the op-wheel binary +RUN make build + +# Set the entrypoint to the op-wheel binary +ENTRYPOINT ["./bin/op-wheel"] From c9ac737987c6e85f2f36ecb3acd4a74fe2b77d3f Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Fri, 14 Mar 2025 13:21:50 +0100 Subject: [PATCH 16/59] add the wheel --- op/Dockerfile.wheel | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/op/Dockerfile.wheel b/op/Dockerfile.wheel index 9703b8af..2b80d4de 100644 --- a/op/Dockerfile.wheel +++ b/op/Dockerfile.wheel @@ -1,14 +1,20 @@ # Use an official Golang image as the base -FROM golang:1.20-alpine +FROM golang:1.22 # Set the working directory WORKDIR /app # Install necessary dependencies -RUN apk add --no-cache git make gcc musl-dev +#RUN apk add --no-cache git make gcc musl-dev -# Clone the Optimism repository -RUN git clone --depth 1 --branch main https://github.com/ethereum-optimism/optimism.git +ARG OP_REPO=https://github.com/ethereum-optimism/optimism.git +ARG OP_VERSION=v1.10.3 +ARG OP_PATCH + +RUN curl -fsSL https://github.com/casey/just/releases/download/1.38.0/just-1.38.0-x86_64-unknown-linux-musl.tar.gz | tar -xzf - -C /usr/local/bin + +RUN git clone $OP_REPO --branch op-node/$OP_VERSION --single-branch . && \ +git switch -c branch-$OP_VERSION # Navigate to the op-wheel directory WORKDIR /app/optimism/op-wheel From 767129bb16677dd6f7b9aeb463c29c96afafb346 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Fri, 14 Mar 2025 13:24:36 +0100 Subject: [PATCH 17/59] add the wheel --- op/Dockerfile.wheel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op/Dockerfile.wheel b/op/Dockerfile.wheel index 2b80d4de..b2b49581 100644 --- a/op/Dockerfile.wheel +++ b/op/Dockerfile.wheel @@ -20,7 +20,7 @@ git switch -c branch-$OP_VERSION WORKDIR /app/optimism/op-wheel # Build the op-wheel binary -RUN make build +RUN make op-wheel # Set the entrypoint to the op-wheel binary ENTRYPOINT ["./bin/op-wheel"] From 9427ddf5114f9fdc99489083acb96df393dc760f Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Fri, 14 Mar 2025 14:24:24 +0100 Subject: [PATCH 18/59] safe me --- op-wheel.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 op-wheel.sh diff --git a/op-wheel.sh b/op-wheel.sh new file mode 100755 index 00000000..025ff182 --- /dev/null +++ b/op-wheel.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# USAGE: +# ./op-wheel.sh engine set-forkchoice --unsafe=0x111AC7F --safe=0x111AC7F --finalized=0x111AC7F --engine=http://op-lisk-sepolia:8551/ --engine.open=http://op-lisk-sepolia:8545 --engine.jwt-secret-path=/jwtsecret + +docker run -it --rm --network rpc_chains -v /root/rpc/.jwtsecret:/jwtsecret golang:latest bash -c 'git clone https://github.com/ethereum-optimism/optimism.git && cd optimism && go run ./op-wheel/cmd "$@"' -- "$@" + From 6f64867a270e1b97a6fe2f43ca9491f6f8452316 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 07:10:26 +0100 Subject: [PATCH 19/59] dencun --- op-manta-pacific.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/op-manta-pacific.yml b/op-manta-pacific.yml index aac63f6a..eaa4304d 100644 --- a/op-manta-pacific.yml +++ b/op-manta-pacific.yml @@ -37,10 +37,32 @@ services: - "traefik.http.routers.manta-pacific-mainnet.middlewares=manta-pacific-mainnet-stripprefix, ipwhitelist" + # manta-pacific-da: + # stop_signal: SIGINT + # restart: unless-stopped + # user: root + # image: "ghcr.io/celestiaorg/celestia-node:v0.12.1" + # command: celestia light start --gateway --core.ip consensus.lunaroasis.net --gateway.addr light --gateway.port 23537 + # environment: + # - NODE_TYPE=light + # volumes: + # - manta-pacific-celestia-light:/home/celestia/.celestia-light/ + # expose: + # - 26658 # core rpc + # - 26657 # rpc + # ports: + # - "23537:23537" # gateway + # healthcheck: + # test: ["CMD", "curl", "-f", "http://localhost:23537/header/1"] + # interval: 10s + # timeout: 5s + # retries: 5 + # start_period: 30s + manta-pacific-node: depends_on: - manta-pacific - image: "public.ecr.aws/i6b2w2n6/op-node:5.2.0" + image: "public.ecr.aws/i6b2w2n6/op-node:celestia-3.0.0-dencun" stop_signal: SIGINT stop_grace_period: 30s networks: @@ -49,6 +71,8 @@ services: OP_NODE_S3_BUCKET: "caldera-celestia-cache-prod" OP_NODE_NAMESPACE_ID: 866269ddf77dbc40ed9d OP_NODE_S3_REGION: 'us-west-2' + # OP_NODE_DA_RPC: "http://manta-pacific-da:26658" + # OP_NODE_AUTH_TOKEN: ${OP_NODE_AUTH_TOKEN} CELESTIA_LEGACY_MODE: "true" OP_NODE_OVERRIDE_CANYON: "1726783200" OP_NODE_OVERRIDE_DELTA: "1726783200" From 31dcc6fdd07bbcf14c3849ac88e64ba11c98084b Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 09:26:26 +0100 Subject: [PATCH 20/59] no more wheel --- op/Dockerfile.wheel | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 op/Dockerfile.wheel diff --git a/op/Dockerfile.wheel b/op/Dockerfile.wheel deleted file mode 100644 index b2b49581..00000000 --- a/op/Dockerfile.wheel +++ /dev/null @@ -1,26 +0,0 @@ -# Use an official Golang image as the base -FROM golang:1.22 - -# Set the working directory -WORKDIR /app - -# Install necessary dependencies -#RUN apk add --no-cache git make gcc musl-dev - -ARG OP_REPO=https://github.com/ethereum-optimism/optimism.git -ARG OP_VERSION=v1.10.3 -ARG OP_PATCH - -RUN curl -fsSL https://github.com/casey/just/releases/download/1.38.0/just-1.38.0-x86_64-unknown-linux-musl.tar.gz | tar -xzf - -C /usr/local/bin - -RUN git clone $OP_REPO --branch op-node/$OP_VERSION --single-branch . && \ -git switch -c branch-$OP_VERSION - -# Navigate to the op-wheel directory -WORKDIR /app/optimism/op-wheel - -# Build the op-wheel binary -RUN make op-wheel - -# Set the entrypoint to the op-wheel binary -ENTRYPOINT ["./bin/op-wheel"] From 232dd8698e5822019125884e2cb353d43b1b68d4 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 09:37:27 +0100 Subject: [PATCH 21/59] fix? --- op-celo-alfajores-fullnode.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 45f9f810..d313e379 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -16,7 +16,7 @@ services: ports: - "10955:10955" - "10955:10955/udp" - command: | + command: > --datadir=/datadir --networkid=44787 --gcmode=full @@ -73,7 +73,7 @@ services: ports: - "39395:39395" - "39395:39395/udp" - command: | + command: > op-node --l1.trustrpc=true --l1=${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com} From 7dcebb7a8e5f7a7924fc7b041d60830a6bf1439d Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 09:43:19 +0100 Subject: [PATCH 22/59] fix? --- op-celo-alfajores-fullnode.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index d313e379..94590da2 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -76,8 +76,8 @@ services: command: > op-node --l1.trustrpc=true - --l1=${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com} - --l1.beacon=${OP_CELO_ALFAJORES_HOLESKY_BEACON_REST:-https://ethereum-holesky-beacon-api.publicnode.com} + --l1="${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com}" + --l1.beacon="${OP_CELO_ALFAJORES_HOLESKY_BEACON_REST:-https://ethereum-holesky-beacon-api.publicnode.com}" --l2=http://op-celo-alfajores-fullnode:8551 --l2.jwt-secret=/jwtsecret --rollup.load-protocol-versions=true From 7117a1102bbe4aedbbce067d73f672b51c6c3c2f Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 09:51:23 +0100 Subject: [PATCH 23/59] new history --- op-celo-alfajores-fullnode.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 94590da2..3c44a430 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -34,7 +34,7 @@ services: --http.vhosts='*' --http.corsdomain='*' --ws - --rollup.historicalrpc=https://alfajores-forno.cel1.alfajores.celo-testnet.org + --rollup.historicalrpc=https://alfajores-forno.celo-testnet.org --ws.addr=0.0.0.0 --ws.port=8545 --ws.api=eth,net,web3,debug,txpool,engine,admin From bf437081df2c5992988107112d26d7d6499dbda5 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 10:16:11 +0100 Subject: [PATCH 24/59] update to specific image --- op-celo-alfajores-fullnode.yml | 84 +++++++++------------------------- 1 file changed, 22 insertions(+), 62 deletions(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 3c44a430..5b867ac3 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -1,11 +1,4 @@ services: - init: - image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-geth:celo-v2.0.0-rc4 - volumes: - - "op-celo-alfajores-fullnode:/datadir" - - "./celo/alfajores:/config" - command: init --datadir /datadir /config/genesis.json - op-celo-alfajores-fullnode: image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-geth:celo-v2.0.0-rc4 depends_on: @@ -16,37 +9,24 @@ services: ports: - "10955:10955" - "10955:10955/udp" - command: > - --datadir=/datadir - --networkid=44787 - --gcmode=full - --snapshot=true - --maxpeers=60 - --port=10955 - --authrpc.addr=0.0.0.0 - --authrpc.port=8551 - --authrpc.jwtsecret=/jwtsecret - --authrpc.vhosts='*' - --http - --http.addr=0.0.0.0 - --http.port=8545 - --http.api=eth,net,web3,debug,txpool,engine,admin - --http.vhosts='*' - --http.corsdomain='*' - --ws - --rollup.historicalrpc=https://alfajores-forno.celo-testnet.org - --ws.addr=0.0.0.0 - --ws.port=8545 - --ws.api=eth,net,web3,debug,txpool,engine,admin - --verbosity=3 - --bootnodes=enode://ac0f42fa46f8cc10bd02a103894d71d495537465133e7c442bc02dc76721a5f41761cc2d8c69e7ba1b33e14e28f516436864d3e0836e2dcdaf032387f72447dd@34.83.164.192:30303,enode://596002969b8b269a4fa34b4709b9600b64201e7d02e2f5f1350affd021b0cbda6ce2b913ebe24f0fb1edcf66b6c730a8a3b02cd940f4de995f73d3b290a0fc92@34.82.177.77:30303,enode://3619455064ef1ce667171bba1df80cfd4c097f018cf0205aaad496f0d509611b7c40396893d9e490ee390cd098888279e177a4d9bb09c58387bb0a6031d237f1@34.19.90.27:30303,enode://e3c54db6004a92d4ee87504f073f3234a25759b485274cc224037e3e5ee792f3b482c3f4fffcb764af6e1859a1aea9710b71e1991e32c1dee7f40352124bb182@35.233.249.87:30303,enode://674410b34fd54c8406a4f945292b96111688d4bab49aecdc34b4f1b346891f4673dcb03ed44c38ab467ef7bec0b20f6031ad88aa1d35ce1333b343d00fa19fb1@34.168.43.76:30303 expose: - 8545 + - 8546 - 8551 networks: - chains restart: always stop_grace_period: 5m + environment: + - NETWORK_NAME=alfajores + - NODE_TYPE=full + - OP_GETH__SYNCMODE=full + - PORT__OP_GETH_HTTP=8545 + - PORT__OP_GETH_WS=8545 + - PORT__OP_GETH_P2P=10955 + - BEDROCK_SEQUENCER_HTTP=https://sequencer.alfajores.celo-testnet.org + - BEDROCK_DATADIR=/datadir + - GETH_BOOTNODES=enode://ac0f42fa46f8cc10bd02a103894d71d495537465133e7c442bc02dc76721a5f41761cc2d8c69e7ba1b33e14e28f516436864d3e0836e2dcdaf032387f72447dd@34.83.164.192:30303,enode://596002969b8b269a4fa34b4709b9600b64201e7d02e2f5f1350affd021b0cbda6ce2b913ebe24f0fb1edcf66b6c730a8a3b02cd940f4de995f73d3b290a0fc92@34.82.177.77:30303,enode://3619455064ef1ce667171bba1df80cfd4c097f018cf0205aaad496f0d509611b7c40396893d9e490ee390cd098888279e177a4d9bb09c58387bb0a6031d237f1@34.19.90.27:30303,enode://e3c54db6004a92d4ee87504f073f3234a25759b485274cc224037e3e5ee792f3b482c3f4fffcb764af6e1859a1aea9710b71e1991e32c1dee7f40352124bb182@35.233.249.87:30303,enode://674410b34fd54c8406a4f945292b96111688d4bab49aecdc34b4f1b346891f4673dcb03ed44c38ab467ef7bec0b20f6031ad88aa1d35ce1333b343d00fa19fb1@34.168.43.76:30303 labels: - "traefik.enable=true" - "traefik.http.middlewares.op-celo-alfajores-stripprefix.stripprefix.prefixes=/op-celo-alfajores" @@ -61,7 +41,6 @@ services: image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-node:celo-v2.0.0-rc4 depends_on: - op-celo-alfajores-fullnode - - op-celo-alfajores-key-generator expose: - 8545 # RPC - 39395 # P2P TCP @@ -73,41 +52,22 @@ services: ports: - "39395:39395" - "39395:39395/udp" - command: > - op-node - --l1.trustrpc=true - --l1="${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com}" - --l1.beacon="${OP_CELO_ALFAJORES_HOLESKY_BEACON_REST:-https://ethereum-holesky-beacon-api.publicnode.com}" - --l2=http://op-celo-alfajores-fullnode:8551 - --l2.jwt-secret=/jwtsecret - --rollup.load-protocol-versions=true - --rollup.config=/config/rollup.json - --verifier.l1-confs=4 - --rpc.addr=0.0.0.0 - --rpc.port=9545 - --p2p.listen.tcp=39395 - --p2p.listen.udp=39395 - --p2p.priv.path=/config/p2p_node_key_txt - --p2p.static=/ip4/35.197.25.52/tcp/9222/p2p/16Uiu2HAmQEdyLRSAVZDr5SqbJ1RnKmNDhtQJcEKmemrVxe4FxKwR,/ip4/34.105.22.4/tcp/9222/p2p/16Uiu2HAm1SZBDSugT5MMu7vBY8auDgfZFNhoDeXPLc9Me5FsAxwT,/ip4/34.83.209.168/tcp/9222/p2p/16Uiu2HAmGJAiUX6HLSo4nLh8T984qxzokwL23cVsYuNZy2SrK7C6,/ip4/34.83.214.149/tcp/9222/p2p/16Uiu2HAmAko2Kr3eAjM7tnshtEhYrxQYfKUvN2kwiygeFoBAoi8S,/ip4/34.169.5.52/tcp/9222/p2p/16Uiu2HAmKc6YKHzYgsjBDaj36uAufxpgZFgrzDqVBt6zTPwdhhJD - --altda.enabled=true - --altda.da-server=https://eigenda-proxy.alfajores.celo-testnet.org - --altda.da-service=true - --altda.verify-on-read=false + environment: + - OP_NODE__RPC_ENDPOINT=${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com} + - OP_NODE__L1_BEACON=${OP_CELO_ALFAJORES_HOLESKY_BEACON_REST:-https://ethereum-holesky-beacon-api.publicnode.com + - OP_NODE__RPC_TYPE=basic + - HEALTHCHECK__REFERENCE_RPC_PROVIDER=https://alfajores-forno.celo-testnet.org + - PORT__OP_NODE_P2P=39395 + - OP_NODE_P2P_STATIC=/ip4/35.197.25.52/tcp/9222/p2p/16Uiu2HAmQEdyLRSAVZDr5SqbJ1RnKmNDhtQJcEKmemrVxe4FxKwR,/ip4/34.105.22.4/tcp/9222/p2p/16Uiu2HAm1SZBDSugT5MMu7vBY8auDgfZFNhoDeXPLc9Me5FsAxwT,/ip4/34.83.209.168/tcp/9222/p2p/16Uiu2HAmGJAiUX6HLSo4nLh8T984qxzokwL23cVsYuNZy2SrK7C6,/ip4/34.83.214.149/tcp/9222/p2p/16Uiu2HAmAko2Kr3eAjM7tnshtEhYrxQYfKUvN2kwiygeFoBAoi8S,/ip4/34.169.5.52/tcp/9222/p2p/16Uiu2HAmKc6YKHzYgsjBDaj36uAufxpgZFgrzDqVBt6zTPwdhhJD + - OP_NODE_ALTDA_ENABLED=true + - OP_NODE_ALTDA_DA_SERVICE=true + - OP_NODE_ALTDA_VERIFY_ON_READ=false + - EIGENDA_PROXY_ENDPOINT=https://eigenda-proxy.alfajores.celo-testnet.org restart: always volumes: - .jwtsecret:/jwtsecret - - "./celo/alfajores:/config" stop_grace_period: 30s - op-celo-alfajores-key-generator: - image: ghcr.io/foundry-rs/foundry - volumes: - - "./celo/alfajores:/config" - entrypoint: sh - command: "[ -f /config/p2p_node_key_txt ] && exit 0 || cast w n | grep -i 'Private Key' | awk -F ': ' '{print $2}' | sed 's/0x//' > /config/p2p_node_key_txt" - - - volumes: op-celo-alfajores-fullnode: From 24252922ee9c9469a99917536ff1f092de2dfab1 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 10:16:52 +0100 Subject: [PATCH 25/59] update to specific image --- op-celo-alfajores-fullnode.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 5b867ac3..cd1bb7c4 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -54,7 +54,7 @@ services: - "39395:39395/udp" environment: - OP_NODE__RPC_ENDPOINT=${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com} - - OP_NODE__L1_BEACON=${OP_CELO_ALFAJORES_HOLESKY_BEACON_REST:-https://ethereum-holesky-beacon-api.publicnode.com + - OP_NODE__L1_BEACON=${OP_CELO_ALFAJORES_HOLESKY_BEACON_REST:-https://ethereum-holesky-beacon-api.publicnode.com} - OP_NODE__RPC_TYPE=basic - HEALTHCHECK__REFERENCE_RPC_PROVIDER=https://alfajores-forno.celo-testnet.org - PORT__OP_NODE_P2P=39395 From f7c36e18c927915500ee2ba80ba8cd18ebe8a97f Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 10:17:39 +0100 Subject: [PATCH 26/59] update to specific image --- op-celo-alfajores-fullnode.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index cd1bb7c4..651a04c0 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -1,8 +1,6 @@ services: op-celo-alfajores-fullnode: image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-geth:celo-v2.0.0-rc4 - depends_on: - - init volumes: - "op-celo-alfajores-fullnode:/datadir" - ".jwtsecret:/jwtsecret" From 442d3a463e7ff1c59d36beabb19dce22103e071a Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 10:34:01 +0100 Subject: [PATCH 27/59] update to specific image --- op-celo-alfajores-fullnode.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 651a04c0..17469e6f 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -51,8 +51,8 @@ services: - "39395:39395" - "39395:39395/udp" environment: - - OP_NODE__RPC_ENDPOINT=${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com} - - OP_NODE__L1_BEACON=${OP_CELO_ALFAJORES_HOLESKY_BEACON_REST:-https://ethereum-holesky-beacon-api.publicnode.com} + - OP_NODE__RPC_ENDPOINT="${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com}" + - OP_NODE__L1_BEACON="${OP_CELO_ALFAJORES_HOLESKY_BEACON_REST:-https://ethereum-holesky-beacon-api.publicnode.com}" - OP_NODE__RPC_TYPE=basic - HEALTHCHECK__REFERENCE_RPC_PROVIDER=https://alfajores-forno.celo-testnet.org - PORT__OP_NODE_P2P=39395 From 52238722a3b900235970b52791de4392542b9030 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 10:35:32 +0100 Subject: [PATCH 28/59] update to specific image --- op-celo-alfajores-fullnode.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 17469e6f..a7fdb9cc 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -51,8 +51,8 @@ services: - "39395:39395" - "39395:39395/udp" environment: - - OP_NODE__RPC_ENDPOINT="${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com}" - - OP_NODE__L1_BEACON="${OP_CELO_ALFAJORES_HOLESKY_BEACON_REST:-https://ethereum-holesky-beacon-api.publicnode.com}" + - OP_NODE__RPC_ENDPOINT='${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com}' + - OP_NODE__L1_BEACON='${OP_CELO_ALFAJORES_HOLESKY_BEACON_REST:-https://ethereum-holesky-beacon-api.publicnode.com}' - OP_NODE__RPC_TYPE=basic - HEALTHCHECK__REFERENCE_RPC_PROVIDER=https://alfajores-forno.celo-testnet.org - PORT__OP_NODE_P2P=39395 From fe910a6bbe9262e38ad2c2793fa791a20888045c Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 10:40:50 +0100 Subject: [PATCH 29/59] update to specific image --- op-celo-alfajores-fullnode.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index a7fdb9cc..651a04c0 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -51,8 +51,8 @@ services: - "39395:39395" - "39395:39395/udp" environment: - - OP_NODE__RPC_ENDPOINT='${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com}' - - OP_NODE__L1_BEACON='${OP_CELO_ALFAJORES_HOLESKY_BEACON_REST:-https://ethereum-holesky-beacon-api.publicnode.com}' + - OP_NODE__RPC_ENDPOINT=${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com} + - OP_NODE__L1_BEACON=${OP_CELO_ALFAJORES_HOLESKY_BEACON_REST:-https://ethereum-holesky-beacon-api.publicnode.com} - OP_NODE__RPC_TYPE=basic - HEALTHCHECK__REFERENCE_RPC_PROVIDER=https://alfajores-forno.celo-testnet.org - PORT__OP_NODE_P2P=39395 From 7e905ba31eccc8f49baee6750f5da68ca59c3d89 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 10:54:07 +0100 Subject: [PATCH 30/59] jo --- op-celo-alfajores-fullnode.yml | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 651a04c0..09f19d63 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -25,6 +25,34 @@ services: - BEDROCK_SEQUENCER_HTTP=https://sequencer.alfajores.celo-testnet.org - BEDROCK_DATADIR=/datadir - GETH_BOOTNODES=enode://ac0f42fa46f8cc10bd02a103894d71d495537465133e7c442bc02dc76721a5f41761cc2d8c69e7ba1b33e14e28f516436864d3e0836e2dcdaf032387f72447dd@34.83.164.192:30303,enode://596002969b8b269a4fa34b4709b9600b64201e7d02e2f5f1350affd021b0cbda6ce2b913ebe24f0fb1edcf66b6c730a8a3b02cd940f4de995f73d3b290a0fc92@34.82.177.77:30303,enode://3619455064ef1ce667171bba1df80cfd4c097f018cf0205aaad496f0d509611b7c40396893d9e490ee390cd098888279e177a4d9bb09c58387bb0a6031d237f1@34.19.90.27:30303,enode://e3c54db6004a92d4ee87504f073f3234a25759b485274cc224037e3e5ee792f3b482c3f4fffcb764af6e1859a1aea9710b71e1991e32c1dee7f40352124bb182@35.233.249.87:30303,enode://674410b34fd54c8406a4f945292b96111688d4bab49aecdc34b4f1b346891f4673dcb03ed44c38ab467ef7bec0b20f6031ad88aa1d35ce1333b343d00fa19fb1@34.168.43.76:30303 + command: > + geth + --datadir="$BEDROCK_DATADIR" + --http + --http.corsdomain="*" + --http.vhosts="*" + --http.addr=0.0.0.0 + --http.port=8545 + --http.api=web3,debug,eth,txpool,net,engine + --ws + --ws.addr=0.0.0.0 + --ws.port=8545 + --ws.origins="*" + --ws.api=debug,eth,txpool,net,engine,web3 + --syncmode="$OP_GETH__SYNCMODE" + --gcmode="$NODE_TYPE" + --authrpc.vhosts="*" + --authrpc.addr=0.0.0.0 + --authrpc.port=8551 + --authrpc.jwtsecret=/jwtsecret + --rollup.sequencerhttp="$BEDROCK_SEQUENCER_HTTP" + --rollup.disabletxpoolgossip=true + --port="${PORT__OP_GETH_P2P:-39393}" + --discovery.port="${PORT__OP_GETH_P2P:-39393}" + --snapshot=true + --verbosity=3 + --history.transactions=0 + --rollup.historicalrpc=${OP_GETH__HISTORICAL_RPC:-https://sequencer.alfajores.celo-testnet.org} labels: - "traefik.enable=true" - "traefik.http.middlewares.op-celo-alfajores-stripprefix.stripprefix.prefixes=/op-celo-alfajores" @@ -61,6 +89,24 @@ services: - OP_NODE_ALTDA_DA_SERVICE=true - OP_NODE_ALTDA_VERIFY_ON_READ=false - EIGENDA_PROXY_ENDPOINT=https://eigenda-proxy.alfajores.celo-testnet.org + command: > + op-node + --l1=$OP_NODE__RPC_ENDPOINT + --l2=http://op-celo-alfajores-fullnode:8551 + --rpc.addr=0.0.0.0 + --rpc.port=9545 + --l2.jwt-secret=/jwtsecret + --l1.trustrpc + --l1.rpckind=$OP_NODE__RPC_TYPE + --l1.beacon=$OP_NODE__L1_BEACON + --metrics.enabled + --metrics.addr=0.0.0.0 + --metrics.port=7300 + --syncmode=execution-layer + --p2p.priv.path=/shared/op-node_p2p_priv.txt + --network=$NETWORK_NAME + --rollup.load-protocol-versions=true + --rollup.halt=major restart: always volumes: - .jwtsecret:/jwtsecret From 55edc8efcfda64af23915b1168d6797400e2e53f Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 10:59:50 +0100 Subject: [PATCH 31/59] jo --- op-celo-alfajores-fullnode.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 09f19d63..47e1150a 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -91,7 +91,7 @@ services: - EIGENDA_PROXY_ENDPOINT=https://eigenda-proxy.alfajores.celo-testnet.org command: > op-node - --l1=$OP_NODE__RPC_ENDPOINT + --li=${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com} --l2=http://op-celo-alfajores-fullnode:8551 --rpc.addr=0.0.0.0 --rpc.port=9545 From 38997477ca2532dcce587fcdf4f7148ceddb668e Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 11:01:02 +0100 Subject: [PATCH 32/59] jo --- op-celo-alfajores-fullnode.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 47e1150a..8d808731 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -91,7 +91,7 @@ services: - EIGENDA_PROXY_ENDPOINT=https://eigenda-proxy.alfajores.celo-testnet.org command: > op-node - --li=${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com} + --li="${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com}" --l2=http://op-celo-alfajores-fullnode:8551 --rpc.addr=0.0.0.0 --rpc.port=9545 From 8cda78738e75eea0df2de5eadcdea92945e6336e Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 11:02:33 +0100 Subject: [PATCH 33/59] jo --- op-celo-alfajores-fullnode.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 8d808731..6ae3f8a1 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -91,7 +91,7 @@ services: - EIGENDA_PROXY_ENDPOINT=https://eigenda-proxy.alfajores.celo-testnet.org command: > op-node - --li="${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com}" + --l1="${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com}" --l2=http://op-celo-alfajores-fullnode:8551 --rpc.addr=0.0.0.0 --rpc.port=9545 From 6278827e524c600ee2f3f0a0d450fff86426ceb5 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 11:07:11 +0100 Subject: [PATCH 34/59] jo --- op-celo-alfajores-fullnode.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 6ae3f8a1..6d1c726a 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -79,16 +79,13 @@ services: - "39395:39395" - "39395:39395/udp" environment: - - OP_NODE__RPC_ENDPOINT=${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com} - - OP_NODE__L1_BEACON=${OP_CELO_ALFAJORES_HOLESKY_BEACON_REST:-https://ethereum-holesky-beacon-api.publicnode.com} - - OP_NODE__RPC_TYPE=basic - HEALTHCHECK__REFERENCE_RPC_PROVIDER=https://alfajores-forno.celo-testnet.org - - PORT__OP_NODE_P2P=39395 + - OP_NODE_P2P=39395 - OP_NODE_P2P_STATIC=/ip4/35.197.25.52/tcp/9222/p2p/16Uiu2HAmQEdyLRSAVZDr5SqbJ1RnKmNDhtQJcEKmemrVxe4FxKwR,/ip4/34.105.22.4/tcp/9222/p2p/16Uiu2HAm1SZBDSugT5MMu7vBY8auDgfZFNhoDeXPLc9Me5FsAxwT,/ip4/34.83.209.168/tcp/9222/p2p/16Uiu2HAmGJAiUX6HLSo4nLh8T984qxzokwL23cVsYuNZy2SrK7C6,/ip4/34.83.214.149/tcp/9222/p2p/16Uiu2HAmAko2Kr3eAjM7tnshtEhYrxQYfKUvN2kwiygeFoBAoi8S,/ip4/34.169.5.52/tcp/9222/p2p/16Uiu2HAmKc6YKHzYgsjBDaj36uAufxpgZFgrzDqVBt6zTPwdhhJD - OP_NODE_ALTDA_ENABLED=true - OP_NODE_ALTDA_DA_SERVICE=true - OP_NODE_ALTDA_VERIFY_ON_READ=false - - EIGENDA_PROXY_ENDPOINT=https://eigenda-proxy.alfajores.celo-testnet.org + - OP_NODE_ALTDA_DA_SERVER=https://eigenda-proxy.alfajores.celo-testnet.org command: > op-node --l1="${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com}" @@ -97,14 +94,14 @@ services: --rpc.port=9545 --l2.jwt-secret=/jwtsecret --l1.trustrpc - --l1.rpckind=$OP_NODE__RPC_TYPE - --l1.beacon=$OP_NODE__L1_BEACON + --l1.rpckind=basic + --l1.beacon="${OP_CELO_ALFAJORES_HOLESKY_BEACON_REST:-https://ethereum-holesky-beacon-api.publicnode.com}" --metrics.enabled --metrics.addr=0.0.0.0 --metrics.port=7300 --syncmode=execution-layer --p2p.priv.path=/shared/op-node_p2p_priv.txt - --network=$NETWORK_NAME + --network=alfajores --rollup.load-protocol-versions=true --rollup.halt=major restart: always From 33b50a34b2d43177c842fa98ad143855dd6dfe38 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 11:10:07 +0100 Subject: [PATCH 35/59] jo --- op-celo-alfajores-fullnode.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 6d1c726a..36719c8c 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -80,7 +80,8 @@ services: - "39395:39395/udp" environment: - HEALTHCHECK__REFERENCE_RPC_PROVIDER=https://alfajores-forno.celo-testnet.org - - OP_NODE_P2P=39395 + - "OP_NODE_P2P_LISTEN_TCP_PORT=39395" + - "OP_NODE_P2P_LISTEN_UDP_PORT=39395" - OP_NODE_P2P_STATIC=/ip4/35.197.25.52/tcp/9222/p2p/16Uiu2HAmQEdyLRSAVZDr5SqbJ1RnKmNDhtQJcEKmemrVxe4FxKwR,/ip4/34.105.22.4/tcp/9222/p2p/16Uiu2HAm1SZBDSugT5MMu7vBY8auDgfZFNhoDeXPLc9Me5FsAxwT,/ip4/34.83.209.168/tcp/9222/p2p/16Uiu2HAmGJAiUX6HLSo4nLh8T984qxzokwL23cVsYuNZy2SrK7C6,/ip4/34.83.214.149/tcp/9222/p2p/16Uiu2HAmAko2Kr3eAjM7tnshtEhYrxQYfKUvN2kwiygeFoBAoi8S,/ip4/34.169.5.52/tcp/9222/p2p/16Uiu2HAmKc6YKHzYgsjBDaj36uAufxpgZFgrzDqVBt6zTPwdhhJD - OP_NODE_ALTDA_ENABLED=true - OP_NODE_ALTDA_DA_SERVICE=true From 7d0f71ef48445f5c214ba50d63979569308f62b3 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 11:16:08 +0100 Subject: [PATCH 36/59] jo --- op-celo-alfajores-fullnode.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 36719c8c..48c8e430 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -26,7 +26,6 @@ services: - BEDROCK_DATADIR=/datadir - GETH_BOOTNODES=enode://ac0f42fa46f8cc10bd02a103894d71d495537465133e7c442bc02dc76721a5f41761cc2d8c69e7ba1b33e14e28f516436864d3e0836e2dcdaf032387f72447dd@34.83.164.192:30303,enode://596002969b8b269a4fa34b4709b9600b64201e7d02e2f5f1350affd021b0cbda6ce2b913ebe24f0fb1edcf66b6c730a8a3b02cd940f4de995f73d3b290a0fc92@34.82.177.77:30303,enode://3619455064ef1ce667171bba1df80cfd4c097f018cf0205aaad496f0d509611b7c40396893d9e490ee390cd098888279e177a4d9bb09c58387bb0a6031d237f1@34.19.90.27:30303,enode://e3c54db6004a92d4ee87504f073f3234a25759b485274cc224037e3e5ee792f3b482c3f4fffcb764af6e1859a1aea9710b71e1991e32c1dee7f40352124bb182@35.233.249.87:30303,enode://674410b34fd54c8406a4f945292b96111688d4bab49aecdc34b4f1b346891f4673dcb03ed44c38ab467ef7bec0b20f6031ad88aa1d35ce1333b343d00fa19fb1@34.168.43.76:30303 command: > - geth --datadir="$BEDROCK_DATADIR" --http --http.corsdomain="*" From 4ae0790ce612f500cd03375ddc8a2f441bbc5acf Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 11:20:54 +0100 Subject: [PATCH 37/59] jo --- op-celo-alfajores-fullnode.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 48c8e430..c5fff8ec 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -17,16 +17,9 @@ services: stop_grace_period: 5m environment: - NETWORK_NAME=alfajores - - NODE_TYPE=full - - OP_GETH__SYNCMODE=full - - PORT__OP_GETH_HTTP=8545 - - PORT__OP_GETH_WS=8545 - - PORT__OP_GETH_P2P=10955 - - BEDROCK_SEQUENCER_HTTP=https://sequencer.alfajores.celo-testnet.org - - BEDROCK_DATADIR=/datadir - GETH_BOOTNODES=enode://ac0f42fa46f8cc10bd02a103894d71d495537465133e7c442bc02dc76721a5f41761cc2d8c69e7ba1b33e14e28f516436864d3e0836e2dcdaf032387f72447dd@34.83.164.192:30303,enode://596002969b8b269a4fa34b4709b9600b64201e7d02e2f5f1350affd021b0cbda6ce2b913ebe24f0fb1edcf66b6c730a8a3b02cd940f4de995f73d3b290a0fc92@34.82.177.77:30303,enode://3619455064ef1ce667171bba1df80cfd4c097f018cf0205aaad496f0d509611b7c40396893d9e490ee390cd098888279e177a4d9bb09c58387bb0a6031d237f1@34.19.90.27:30303,enode://e3c54db6004a92d4ee87504f073f3234a25759b485274cc224037e3e5ee792f3b482c3f4fffcb764af6e1859a1aea9710b71e1991e32c1dee7f40352124bb182@35.233.249.87:30303,enode://674410b34fd54c8406a4f945292b96111688d4bab49aecdc34b4f1b346891f4673dcb03ed44c38ab467ef7bec0b20f6031ad88aa1d35ce1333b343d00fa19fb1@34.168.43.76:30303 command: > - --datadir="$BEDROCK_DATADIR" + --datadir=/datadir --http --http.corsdomain="*" --http.vhosts="*" @@ -38,20 +31,20 @@ services: --ws.port=8545 --ws.origins="*" --ws.api=debug,eth,txpool,net,engine,web3 - --syncmode="$OP_GETH__SYNCMODE" - --gcmode="$NODE_TYPE" + --syncmode="full" + --gcmode="full" --authrpc.vhosts="*" --authrpc.addr=0.0.0.0 --authrpc.port=8551 --authrpc.jwtsecret=/jwtsecret - --rollup.sequencerhttp="$BEDROCK_SEQUENCER_HTTP" + --rollup.sequencerhttp=https://sequencer.alfajores.celo-testnet.org --rollup.disabletxpoolgossip=true - --port="${PORT__OP_GETH_P2P:-39393}" - --discovery.port="${PORT__OP_GETH_P2P:-39393}" + --port="10955" + --discovery.port="10955" --snapshot=true --verbosity=3 --history.transactions=0 - --rollup.historicalrpc=${OP_GETH__HISTORICAL_RPC:-https://sequencer.alfajores.celo-testnet.org} + --rollup.historicalrpc=${OP_GETH_HISTORICAL_RPC:-https://sequencer.alfajores.celo-testnet.org} labels: - "traefik.enable=true" - "traefik.http.middlewares.op-celo-alfajores-stripprefix.stripprefix.prefixes=/op-celo-alfajores" From d9521aac6bc9f9b4c4165c96b31047e478202bb2 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 11:26:55 +0100 Subject: [PATCH 38/59] jo --- op-celo-alfajores-fullnode.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index c5fff8ec..1b627a8e 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -4,6 +4,7 @@ services: volumes: - "op-celo-alfajores-fullnode:/datadir" - ".jwtsecret:/jwtsecret" + - "./celo/alfajores/:/chainconfig" ports: - "10955:10955" - "10955:10955/udp" From c025dac861e7589579f5f11a70b866f365d88d0f Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 12:45:54 +0100 Subject: [PATCH 39/59] fix? --- op-celo-alfajores-fullnode.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 1b627a8e..85284fb7 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -95,7 +95,7 @@ services: --metrics.port=7300 --syncmode=execution-layer --p2p.priv.path=/shared/op-node_p2p_priv.txt - --network=alfajores + --networkid=44787 --rollup.load-protocol-versions=true --rollup.halt=major restart: always From e7cf69dd9dbc71d171a56a46b793e928d0d093b7 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 12:50:48 +0100 Subject: [PATCH 40/59] fix? --- op-celo-alfajores-fullnode.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 85284fb7..5b336d13 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -95,12 +95,13 @@ services: --metrics.port=7300 --syncmode=execution-layer --p2p.priv.path=/shared/op-node_p2p_priv.txt - --networkid=44787 + --rollup.config=/chainconfigs/rollup.json --rollup.load-protocol-versions=true --rollup.halt=major restart: always volumes: - .jwtsecret:/jwtsecret + - ./celo/alfajores/:/chainconfigs/ stop_grace_period: 30s volumes: From bc8ef7108372c1906b8e5408e26afb3f31d98b40 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 12:53:41 +0100 Subject: [PATCH 41/59] fix? --- op-celo-alfajores-fullnode.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 5b336d13..026b635f 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -94,7 +94,7 @@ services: --metrics.addr=0.0.0.0 --metrics.port=7300 --syncmode=execution-layer - --p2p.priv.path=/shared/op-node_p2p_priv.txt + --p2p.priv.path=/chainconfigs/p2p_node_key_txt --rollup.config=/chainconfigs/rollup.json --rollup.load-protocol-versions=true --rollup.halt=major @@ -104,6 +104,14 @@ services: - ./celo/alfajores/:/chainconfigs/ stop_grace_period: 30s + op-celo-alfajores-key-generator: + image: ghcr.io/foundry-rs/foundry + volumes: + - "./celo/alfajores:/config" + entrypoint: sh + command: "[ -f /config/p2p_node_key_txt ] && exit 0 || cast w n | grep -i 'Private Key' | awk -F ': ' '{print $2}' | sed 's/0x//' > /config/p2p_node_key_txt" + + volumes: op-celo-alfajores-fullnode: From 242e2804b863fcc9fcb0e81438f428284c407c82 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 13:17:42 +0100 Subject: [PATCH 42/59] fix? --- op-celo-alfajores-fullnode.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 026b635f..523218a0 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -21,6 +21,7 @@ services: - GETH_BOOTNODES=enode://ac0f42fa46f8cc10bd02a103894d71d495537465133e7c442bc02dc76721a5f41761cc2d8c69e7ba1b33e14e28f516436864d3e0836e2dcdaf032387f72447dd@34.83.164.192:30303,enode://596002969b8b269a4fa34b4709b9600b64201e7d02e2f5f1350affd021b0cbda6ce2b913ebe24f0fb1edcf66b6c730a8a3b02cd940f4de995f73d3b290a0fc92@34.82.177.77:30303,enode://3619455064ef1ce667171bba1df80cfd4c097f018cf0205aaad496f0d509611b7c40396893d9e490ee390cd098888279e177a4d9bb09c58387bb0a6031d237f1@34.19.90.27:30303,enode://e3c54db6004a92d4ee87504f073f3234a25759b485274cc224037e3e5ee792f3b482c3f4fffcb764af6e1859a1aea9710b71e1991e32c1dee7f40352124bb182@35.233.249.87:30303,enode://674410b34fd54c8406a4f945292b96111688d4bab49aecdc34b4f1b346891f4673dcb03ed44c38ab467ef7bec0b20f6031ad88aa1d35ce1333b343d00fa19fb1@34.168.43.76:30303 command: > --datadir=/datadir + --networkid=44787 --http --http.corsdomain="*" --http.vhosts="*" From 13cd30d24baae46eaa25656c2aae330dc2e6d2ef Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 13:22:24 +0100 Subject: [PATCH 43/59] fix? --- op-celo-alfajores-fullnode.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 523218a0..d524f07e 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -39,6 +39,7 @@ services: --authrpc.addr=0.0.0.0 --authrpc.port=8551 --authrpc.jwtsecret=/jwtsecret + --authrpc.api=engine,eth,debug" --rollup.sequencerhttp=https://sequencer.alfajores.celo-testnet.org --rollup.disabletxpoolgossip=true --port="10955" @@ -74,8 +75,8 @@ services: - "39395:39395/udp" environment: - HEALTHCHECK__REFERENCE_RPC_PROVIDER=https://alfajores-forno.celo-testnet.org - - "OP_NODE_P2P_LISTEN_TCP_PORT=39395" - - "OP_NODE_P2P_LISTEN_UDP_PORT=39395" + - OP_NODE_P2P_LISTEN_TCP_PORT=39395 + - OP_NODE_P2P_LISTEN_UDP_PORT=39395 - OP_NODE_P2P_STATIC=/ip4/35.197.25.52/tcp/9222/p2p/16Uiu2HAmQEdyLRSAVZDr5SqbJ1RnKmNDhtQJcEKmemrVxe4FxKwR,/ip4/34.105.22.4/tcp/9222/p2p/16Uiu2HAm1SZBDSugT5MMu7vBY8auDgfZFNhoDeXPLc9Me5FsAxwT,/ip4/34.83.209.168/tcp/9222/p2p/16Uiu2HAmGJAiUX6HLSo4nLh8T984qxzokwL23cVsYuNZy2SrK7C6,/ip4/34.83.214.149/tcp/9222/p2p/16Uiu2HAmAko2Kr3eAjM7tnshtEhYrxQYfKUvN2kwiygeFoBAoi8S,/ip4/34.169.5.52/tcp/9222/p2p/16Uiu2HAmKc6YKHzYgsjBDaj36uAufxpgZFgrzDqVBt6zTPwdhhJD - OP_NODE_ALTDA_ENABLED=true - OP_NODE_ALTDA_DA_SERVICE=true @@ -91,9 +92,6 @@ services: --l1.trustrpc --l1.rpckind=basic --l1.beacon="${OP_CELO_ALFAJORES_HOLESKY_BEACON_REST:-https://ethereum-holesky-beacon-api.publicnode.com}" - --metrics.enabled - --metrics.addr=0.0.0.0 - --metrics.port=7300 --syncmode=execution-layer --p2p.priv.path=/chainconfigs/p2p_node_key_txt --rollup.config=/chainconfigs/rollup.json From b8e56c770e8d93998a3465c60c15c255e704df07 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 13:22:52 +0100 Subject: [PATCH 44/59] fix? --- op-celo-alfajores-fullnode.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index d524f07e..d4adc2f2 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -39,7 +39,7 @@ services: --authrpc.addr=0.0.0.0 --authrpc.port=8551 --authrpc.jwtsecret=/jwtsecret - --authrpc.api=engine,eth,debug" + --authrpc.api=engine,eth,debug --rollup.sequencerhttp=https://sequencer.alfajores.celo-testnet.org --rollup.disabletxpoolgossip=true --port="10955" From 429993aee798892291234a9d5a219aa64966cd0c Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 13:25:26 +0100 Subject: [PATCH 45/59] fix? --- op-celo-alfajores-fullnode.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index d4adc2f2..5739d390 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -39,7 +39,6 @@ services: --authrpc.addr=0.0.0.0 --authrpc.port=8551 --authrpc.jwtsecret=/jwtsecret - --authrpc.api=engine,eth,debug --rollup.sequencerhttp=https://sequencer.alfajores.celo-testnet.org --rollup.disabletxpoolgossip=true --port="10955" From 6072a158d2f64ba8bf2a0e3e810efae332e02fba Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 13:53:41 +0100 Subject: [PATCH 46/59] fix? --- op-celo-alfajores-fullnode.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 5739d390..2101f91d 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -81,13 +81,13 @@ services: - OP_NODE_ALTDA_DA_SERVICE=true - OP_NODE_ALTDA_VERIFY_ON_READ=false - OP_NODE_ALTDA_DA_SERVER=https://eigenda-proxy.alfajores.celo-testnet.org + - OP_NODE_L2_ENGINE_AUTH=/jwtsecret command: > op-node --l1="${OP_CELO_ALFAJORES_HOLESKY_RPC:-https://ethereum-holesky-rpc.publicnode.com}" --l2=http://op-celo-alfajores-fullnode:8551 --rpc.addr=0.0.0.0 --rpc.port=9545 - --l2.jwt-secret=/jwtsecret --l1.trustrpc --l1.rpckind=basic --l1.beacon="${OP_CELO_ALFAJORES_HOLESKY_BEACON_REST:-https://ethereum-holesky-beacon-api.publicnode.com}" From dc1f1183ab41905a9a7f01111cd54293cf2e0e71 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 13:58:11 +0100 Subject: [PATCH 47/59] fix? --- op-celo-alfajores-fullnode.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index 2101f91d..b656000f 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -1,6 +1,6 @@ services: op-celo-alfajores-fullnode: - image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-geth:celo-v2.0.0-rc4 + image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-geth:celo-v2.0.0-rc5 volumes: - "op-celo-alfajores-fullnode:/datadir" - ".jwtsecret:/jwtsecret" @@ -58,7 +58,7 @@ services: op-celo-alfajores-fullnode-node: - image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-node:celo-v2.0.0-rc4 + image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-node:celo-v2.0.0-rc5 depends_on: - op-celo-alfajores-fullnode expose: From bb94e499e5a8d747a935aa0839f69b8ce27fb860 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 13:59:17 +0100 Subject: [PATCH 48/59] fix? --- op-celo-alfajores-fullnode.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/op-celo-alfajores-fullnode.yml b/op-celo-alfajores-fullnode.yml index b656000f..3a0dec7c 100644 --- a/op-celo-alfajores-fullnode.yml +++ b/op-celo-alfajores-fullnode.yml @@ -1,6 +1,6 @@ services: op-celo-alfajores-fullnode: - image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-geth:celo-v2.0.0-rc5 + image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-geth:celo-v2.0.0 volumes: - "op-celo-alfajores-fullnode:/datadir" - ".jwtsecret:/jwtsecret" @@ -58,7 +58,7 @@ services: op-celo-alfajores-fullnode-node: - image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-node:celo-v2.0.0-rc5 + image: us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-node:celo-v2.0.0 depends_on: - op-celo-alfajores-fullnode expose: From 247d64bed598bedfe189c000d11417825ead8296 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sat, 15 Mar 2025 14:07:41 +0100 Subject: [PATCH 49/59] fix --- celo/alfajores/rollup.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/celo/alfajores/rollup.json b/celo/alfajores/rollup.json index 4a0a5cef..15418759 100644 --- a/celo/alfajores/rollup.json +++ b/celo/alfajores/rollup.json @@ -38,6 +38,11 @@ "da_commitment_type": "GenericCommitment", "da_challenge_window": 1, "da_resolve_window": 1 + }, + "chain_op_config": { + "eip1559Elasticity": 5, + "eip1559Denominator": 400, + "eip1559DenominatorCanyon": 400 } } From 62b049b2e19f91c5f44ba6426e63325049d1c0bb Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Mon, 17 Mar 2025 04:36:11 +0100 Subject: [PATCH 50/59] ? --- sonic.yml | 2 ++ sonic/Dockerfile | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sonic.yml b/sonic.yml index 1a13a1b3..cd70de28 100644 --- a/sonic.yml +++ b/sonic.yml @@ -4,6 +4,8 @@ services: build: context: ./sonic dockerfile: Dockerfile + args: + VERSION: ${SONIC_VERSION:-v2.0.3} stop_grace_period: 3m volumes: - "sonic:/var/sonic" diff --git a/sonic/Dockerfile b/sonic/Dockerfile index fc032a78..82234ef4 100644 --- a/sonic/Dockerfile +++ b/sonic/Dockerfile @@ -7,9 +7,11 @@ FROM golang:1.22 as builder +ARG VERSION + RUN apt-get update && apt-get install -y git musl-dev make -RUN cd /go && git clone https://github.com/Fantom-foundation/Sonic.git && cd Sonic && git fetch --tags && git checkout -b v2.0.1 tags/v2.0.1 +RUN cd /go && git clone https://github.com/0xsoniclabs/sonic.git && cd Sonic && git fetch --tags && git checkout -b ${VERSION} tags/${VERSION} WORKDIR /go/Sonic From 0f52619c3600b3bbc5dcd379585eb30917ac0b3e Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Mon, 17 Mar 2025 04:37:24 +0100 Subject: [PATCH 51/59] ? --- sonic/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonic/Dockerfile b/sonic/Dockerfile index 82234ef4..69cea9b0 100644 --- a/sonic/Dockerfile +++ b/sonic/Dockerfile @@ -11,7 +11,7 @@ ARG VERSION RUN apt-get update && apt-get install -y git musl-dev make -RUN cd /go && git clone https://github.com/0xsoniclabs/sonic.git && cd Sonic && git fetch --tags && git checkout -b ${VERSION} tags/${VERSION} +RUN cd /go && git clone https://github.com/0xsoniclabs/sonic.git && cd sonic && git fetch --tags && git checkout -b ${VERSION} tags/${VERSION} WORKDIR /go/Sonic From a0c850fb3b1d8c7277921d86fb3e8f19ab043d0b Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Mon, 17 Mar 2025 04:38:37 +0100 Subject: [PATCH 52/59] ? --- sonic/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonic/Dockerfile b/sonic/Dockerfile index 69cea9b0..7da6090e 100644 --- a/sonic/Dockerfile +++ b/sonic/Dockerfile @@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y git musl-dev make RUN cd /go && git clone https://github.com/0xsoniclabs/sonic.git && cd sonic && git fetch --tags && git checkout -b ${VERSION} tags/${VERSION} -WORKDIR /go/Sonic +WORKDIR /go/sonic ARG GOPROXY RUN go mod download From 910d32c05d7fcebc2c753a4ef837bb04abf1b14b Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Mon, 17 Mar 2025 04:39:57 +0100 Subject: [PATCH 53/59] ? --- sonic/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic/Dockerfile b/sonic/Dockerfile index 7da6090e..197d31d4 100644 --- a/sonic/Dockerfile +++ b/sonic/Dockerfile @@ -21,8 +21,8 @@ RUN make all FROM golang:1.22 -COPY --from=builder /go/Sonic/build/sonicd /usr/local/bin/ -COPY --from=builder /go/Sonic/build/sonictool /usr/local/bin/ +COPY --from=builder /go/sonic/build/sonicd /usr/local/bin/ +COPY --from=builder /go/sonic/build/sonictool /usr/local/bin/ COPY ./entrypoint.sh /entrypoint.sh From 4e17308d869f01b23685bd5fe94bec71376b60ba Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Mon, 17 Mar 2025 16:44:25 +0100 Subject: [PATCH 54/59] open port --- bsc/config/config.toml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bsc/config/config.toml b/bsc/config/config.toml index a118b2e3..a8f48c00 100644 --- a/bsc/config/config.toml +++ b/bsc/config/config.toml @@ -27,13 +27,14 @@ OracleThreshold = 1000 [Node] IPCPath = "geth.ipc" -HTTPHost = "localhost" +HTTPHost = "0.0.0.0" InsecureUnlockAllowed = false HTTPPort = 8545 HTTPVirtualHosts = ["localhost"] -HTTPModules = ["eth", "net", "web3", "txpool", "parlia"] -WSPort = 8546 -WSModules = ["net", "web3", "eth"] +HTTPModules = ["eth", "net", "web3", "txpool", "parlia", "debug", "admin"] +WSHost = "0.0.0.0" +WSPort = 8545 +WSModules = ["net", "web3", "eth", "debug"] [Node.P2P] MaxPeers = 200 From a1b3d48f1f004435f24ffe75b2a8c78ed7160e13 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Mon, 17 Mar 2025 16:47:02 +0100 Subject: [PATCH 55/59] open port --- bsc/config/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsc/config/config.toml b/bsc/config/config.toml index a8f48c00..ecb305cd 100644 --- a/bsc/config/config.toml +++ b/bsc/config/config.toml @@ -30,7 +30,7 @@ IPCPath = "geth.ipc" HTTPHost = "0.0.0.0" InsecureUnlockAllowed = false HTTPPort = 8545 -HTTPVirtualHosts = ["localhost"] +HTTPVirtualHosts = ["*"] HTTPModules = ["eth", "net", "web3", "txpool", "parlia", "debug", "admin"] WSHost = "0.0.0.0" WSPort = 8545 From fa4a9a43bd5c16a00dbe92673d7120889ed9e59c Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Mon, 17 Mar 2025 16:55:14 +0100 Subject: [PATCH 56/59] fix --- op-mode-mainnet-pbss.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/op-mode-mainnet-pbss.yml b/op-mode-mainnet-pbss.yml index eda52803..622308d7 100644 --- a/op-mode-mainnet-pbss.yml +++ b/op-mode-mainnet-pbss.yml @@ -2,7 +2,6 @@ version: '3.1' services: op-mode-mainnet: # this is Optimism's geth client - #image: stakesquid/op-mode-mainnet:v0.1 build: context: ./op expose: @@ -24,7 +23,6 @@ services: - "GETH_ROLLUP_SEQUENCERHTTP=https://rpc-mode-mainnet-0.t.conduit.xyz" - "GETH_GCMODE=full" - "GETH_SYNCMODE=snap" - #- "GETH_NODISCOVER=true" - "GETH_STATE_SCHEME=path" - "GETH_DB_ENGINE=pebble" - "P2P_PORT=34542" @@ -35,6 +33,8 @@ services: - "GETH_OVERRIDE_DELTA=1708560000" - "GETH_OVERRIDE_ECOTONE=1710374401" - "GETH_OVERRIDE_FJORD=1720627201" + - "GETH_OVERRIDE_GRANITE=1726070401" + - "GETH_OVERRIDE_HOLOCENE=1736445601" labels: - "traefik.enable=true" - "traefik.http.middlewares.mode-stripprefix.stripprefix.prefixes=/mode-mainnet" @@ -68,7 +68,6 @@ services: - .jwtsecret:/jwtsecret stop_grace_period: 30s environment: - #- "OP_NODE_NETWORK=mode-mainnet-0" - "OP_NODE_SYNCMODE=execution-layer" - "OP_NODE_L1_ETH_RPC=${MODE_MAINNET_L1_ENDPOINT}" - "OP_NODE_L2_ENGINE_AUTH_RAW=${JWTSECRET}" @@ -100,6 +99,8 @@ services: - "OP_NODE_OVERRIDE_DELTA=1708560000" - "OP_NODE_OVERRIDE_ECOTONE=1710374401" - "OP_NODE_OVERRIDE_FJORD=1720627201" + - "OP_NODE_OVERRIDE_GRANITE=1726070401" + - "OP_NODE_OVERRIDE_HOLOCENE=1736445601" networks: - chains From dd8c5f6aa565add4de1286d2f233e2348c93856d Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Tue, 18 Mar 2025 05:29:21 +0100 Subject: [PATCH 57/59] fix --- op-zircuit-mainnet.cfg | 2 +- op-zircuit-testnet.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/op-zircuit-mainnet.cfg b/op-zircuit-mainnet.cfg index 428b8fb8..6329d82f 100644 --- a/op-zircuit-mainnet.cfg +++ b/op-zircuit-mainnet.cfg @@ -11,7 +11,7 @@ - name: txpool_content - name: zirc_getQuarantineHistory - name: zirc_getQuarantined - - name: zirc_isQuarantined + - name: zirc_isQuarantined connection: generic: rpc: diff --git a/op-zircuit-testnet.cfg b/op-zircuit-testnet.cfg index 428b8fb8..6329d82f 100644 --- a/op-zircuit-testnet.cfg +++ b/op-zircuit-testnet.cfg @@ -11,7 +11,7 @@ - name: txpool_content - name: zirc_getQuarantineHistory - name: zirc_getQuarantined - - name: zirc_isQuarantined + - name: zirc_isQuarantined connection: generic: rpc: From 57f5091dcd21ea14cc3140d806b04f7ad65720a2 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Tue, 18 Mar 2025 05:48:47 +0100 Subject: [PATCH 58/59] try ai --- groq.sh | 27 +++++++++++++++++++++++++++ groq/Dockerfile | 8 ++++++++ groq/rpc_sync_checker.py | 21 +++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 groq.sh create mode 100644 groq/Dockerfile create mode 100644 groq/rpc_sync_checker.py diff --git a/groq.sh b/groq.sh new file mode 100644 index 00000000..ce1ac7f3 --- /dev/null +++ b/groq.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# Determine the script's base directory +BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +# Load environment variables from .env file +if [ -f "$BASEDIR/.env" ]; then + source "$BASEDIR/.env" +fi + +# Ensure GROQ_API_KEY is set +if [ -z "$GROQ_API_KEY" ]; then + echo "Error: GROQ_API_KEY is not set. Please define it in $BASEDIR/.env" + exit 1 +fi + +# Validate input argument +if [ -z "$1" ] || [ ! -f "$BASEDIR/rpc/$1.yml" ]; then + echo "Error: Either no argument provided or $BASEDIR/rpc/$1.yml does not exist." + exit 1 +fi + +# Build the container +docker build -t rpc_sync_checker "$BASEDIR/groq" + +# Run logs.sh and feed logs into the sync checker container +"$BASEDIR/logs.sh" "$1" | docker run --rm -i -e GROQ_API_KEY="$GROQ_API_KEY" rpc_sync_checker diff --git a/groq/Dockerfile b/groq/Dockerfile new file mode 100644 index 00000000..ca66e307 --- /dev/null +++ b/groq/Dockerfile @@ -0,0 +1,8 @@ +FROM python:3.11 + +WORKDIR /app + +COPY rpc_sync_checker.py /app/ +RUN pip install groq + +CMD ["python", "/app/rpc_sync_checker.py"] \ No newline at end of file diff --git a/groq/rpc_sync_checker.py b/groq/rpc_sync_checker.py new file mode 100644 index 00000000..859928ed --- /dev/null +++ b/groq/rpc_sync_checker.py @@ -0,0 +1,21 @@ +import os +import sys +from groq import Groq + +def check_sync_progress(logs): + client = Groq(api_key=os.environ.get("GROQ_API_KEY")) + + response = client.chat.completions.create( + messages=[ + {"role": "system", "content": "You are an assistant trained to analyze blockchain RPC logs."}, + {"role": "user", "content": f"Based on the following logs, is the RPC node progressing in its sync? Answer only '0' for yes and '1' for no.\n\n{logs}"} + ], + model="llama-3.3-70b-versatile", + ) + + return response.choices[0].message.content.strip() + +if __name__ == "__main__": + logs = sys.stdin.read() # Read input from STDIN + result = check_sync_progress(logs) + print(result) From 228d527af3d68c4ea2abfc3d7780fbe0110ac3c4 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Tue, 18 Mar 2025 06:02:34 +0100 Subject: [PATCH 59/59] make the show-status script fail on errors --- show-status.sh | 51 ++++++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/show-status.sh b/show-status.sh index 363e988a..c5a36700 100755 --- a/show-status.sh +++ b/show-status.sh @@ -1,3 +1,4 @@ + #!/bin/bash BASEPATH="$(dirname "$0")" @@ -7,39 +8,41 @@ IFS=':' read -ra parts <<< $COMPOSE_FILE blacklist=("drpc.yml" "drpc-free.yml" "base.yml" "rpc.yml" "monitoring.yml" "ftp.yml" "backup-http.yml") +# Flag to track if any invocation failed +any_failure=false + for part in "${parts[@]}"; do include=true for word in "${blacklist[@]}"; do - if echo "$part" | grep -qE "$word"; then - #echo "The path $path contains a blacklisted word: $word" - include=false - fi + if echo "$part" | grep -qE "$word"; then + include=false + fi done # Check if any parameters were passed if [ $# -gt 0 ]; then - # Put parameters into an array (list) - params=("$@") + # Put parameters into an array (list) + params=("$@") + + # Check if a string is part of the list + if [[ " ${params[@]} " =~ " $1 " ]]; then + include=$include # don't change anything + else + include=false + fi + fi - # Check if a string is part of the list - if [[ " ${params[@]} " =~ " ${part%.yml} " ]]; then - include=$include # don't change anything - else - include=false - fi - fi - if $include; then - result=$($BASEPATH/sync-status.sh "${part%.yml}") - #if [ "$1" = "${part%.yml}" ]; then - # echo "${result}" - # exit 0 - #else - echo "${part%.yml}: $result" - #fi + result=$($BASEPATH/sync-status.sh "${part%.yml}") + if [ $? -ne 0 ]; then + any_failure=true + fi + + echo "${part%.yml}: $result" fi done - - - +# If any invocation failed, return a failure exit code +if $any_failure; then + exit 1 +fi