This commit is contained in:
Para Dox
2025-04-19 15:47:16 +07:00
parent c4b032577e
commit 54d3e75710
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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"