mirror of
https://github.com/status-im/infra-role-geth.git
synced 2025-02-26 18:40:27 +00:00
params argument is optional for eth_syncing call
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
fe02beb837
commit
9bdc74d18e
@ -8,7 +8,7 @@
|
|||||||
set -e
|
set -e
|
||||||
echo -n "Geth synced: "
|
echo -n "Geth synced: "
|
||||||
RESP=$(curl -s -X POST -H 'Content-type:application/json' \
|
RESP=$(curl -s -X POST -H 'Content-type:application/json' \
|
||||||
--data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' \
|
--data '{"jsonrpc":"2.0","method":"eth_syncing","id":1}' \
|
||||||
http://localhost:{{ geth_rpc_port }}/)
|
http://localhost:{{ geth_rpc_port }}/)
|
||||||
echo "${RESP}" | jq -e ".result == false" \
|
echo "${RESP}" | jq -e ".result == false" \
|
||||||
|| ( echo "${RESP}" | jq . ; exit 1 )
|
|| ( echo "${RESP}" | jq . ; exit 1 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user