3 changed files with 18 additions and 4 deletions
@ -0,0 +1,11 @@ |
|||||
|
source userpass |
||||
|
ht=$1 |
||||
|
while true |
||||
|
do |
||||
|
#curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"snapshot\",\"coin\":\"KMD\",\"height\":$ht}" |
||||
|
ht=`curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"snapshot\",\"coin\":\"KMD\"}" | jq .blocks` |
||||
|
|
||||
|
echo next height $ht |
||||
|
sleep 600 |
||||
|
done |
||||
|
|
Loading…
Reference in new issue