Wait for one slot to be produced

This commit is contained in:
Michael Vines
2020-05-26 13:08:16 -07:00
parent ee05266a09
commit a93915f1bd

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