13 lines
348 B

7 years ago
#!/bin/bash
8 years ago
source userpass
ht=$1
while true
do
8 years ago
#curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"snapshot\",\"coin\":\"KMD\",\"height\":$ht}"
ht=`curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"snapshot\",\"coin\":\"KMD\"}" | jq .blocks`
8 years ago
echo next height $ht
sleep 600
done