timeout everytwhere

This commit is contained in:
Sebastian
2025-03-18 13:11:55 +01:00
parent 97f0148e42
commit e4484b1712

View File

@@ -24,7 +24,7 @@ if [ $? -eq 0 ]; then
latest_block_hash=$(echo "$response" | jq -r '.result.hash')
response_file2=$(mktemp)
sleep 1 # to give the reference node more time to import the block if it is very current
sleep 2 # to give the reference node more time to import the block if it is very current
http_status_code2=$(curl --ipv4 -m $timeout -s -X POST -w "%{http_code}" -o "$response_file2" -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"$latest_block_number\", false],\"id\":1}" $ref)