From 54d3e7571054f8488b4be85ea79f7c8df73d1b0d Mon Sep 17 00:00:00 2001 From: Para Dox Date: Sat, 19 Apr 2025 15:47:16 +0700 Subject: [PATCH] fix --- arb/nitro/arbitrum-sepolia-nitro-pruned-pebble-hash.yml | 1 + op-wheel-finalize-last-block.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arb/nitro/arbitrum-sepolia-nitro-pruned-pebble-hash.yml b/arb/nitro/arbitrum-sepolia-nitro-pruned-pebble-hash.yml index 83b8e9a5..2d19e16d 100644 --- a/arb/nitro/arbitrum-sepolia-nitro-pruned-pebble-hash.yml +++ b/arb/nitro/arbitrum-sepolia-nitro-pruned-pebble-hash.yml @@ -30,6 +30,7 @@ services: - --http.corsdomain=* - --http.port=8545 - --http.vhosts=* + - --init.latest=pruned - --node.batch-poster.enable=false - --node.sequencer=false - --node.staker.enable=false diff --git a/op-wheel-finalize-last-block.sh b/op-wheel-finalize-last-block.sh index c48378f3..d69bf307 100755 --- a/op-wheel-finalize-last-block.sh +++ b/op-wheel-finalize-last-block.sh @@ -5,7 +5,7 @@ RPC_URL="http://$1:8545" -latest=$(curl -L -s -X POST $RPC_URL -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest",false],"id":1}' | jq -r '.result.number') +latest=$(docker run -it --network=rpc_chains --rm docker.io/curlimages/curl -L -s -X POST $RPC_URL -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest",false],"id":1}' | jq -r '.result.number') if [ $? -ne 0 ]; then echo "Failed to get latest block number"