Wait for one slot to be produced (#10257)

automerge

(cherry picked from commit 22a98bd27a)
This commit is contained in:
Michael Vines
2020-05-26 16:20:28 -07:00
parent 606a392d50
commit c9cbc39ec9

View File

@ -19,6 +19,9 @@ while [[ ! -f config/run/init-completed ]]; do
fi
done
while [[ $($solana_cli slot --commitment recent) -eq 0 ]]; do
sleep 1
done
curl -X POST -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1, "method":"validatorExit"}' http://localhost:8899
wait $pid