params argument is optional for eth_syncing call

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-04-26 12:51:48 +02:00
parent fe02beb837
commit 9bdc74d18e
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 1 additions and 1 deletions

View File

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