fix
This commit is contained in:
@@ -30,6 +30,7 @@ services:
|
|||||||
- --http.corsdomain=*
|
- --http.corsdomain=*
|
||||||
- --http.port=8545
|
- --http.port=8545
|
||||||
- --http.vhosts=*
|
- --http.vhosts=*
|
||||||
|
- --init.latest=pruned
|
||||||
- --node.batch-poster.enable=false
|
- --node.batch-poster.enable=false
|
||||||
- --node.sequencer=false
|
- --node.sequencer=false
|
||||||
- --node.staker.enable=false
|
- --node.staker.enable=false
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
RPC_URL="http://$1:8545"
|
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
|
if [ $? -ne 0 ]; then
|
||||||
echo "Failed to get latest block number"
|
echo "Failed to get latest block number"
|
||||||
|
|||||||
Reference in New Issue
Block a user