You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
271 B

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