fix: block until the JSON RPC API is available

This commit is contained in:
Michael Vines 2018-10-25 17:55:50 -07:00
parent f871b0410a
commit ce6e840e03
1 changed files with 7 additions and 0 deletions

View File

@ -75,6 +75,13 @@ up)
--env RUST_LOG="$RUST_LOG" \
solanalabs/solana:"$channel"
curl \
--retry 10 \
--retry-connrefused \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \
http://localhost:8899
)
;;
down)