scripts: Update wasmd init.sh script

This commit is contained in:
willclarktech 2020-11-18 18:34:03 +01:00
parent 9b60e34a57
commit 15b67ef6fc
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7

View File

@ -3,7 +3,7 @@ set -o errexit -o nounset -o pipefail
command -v shellcheck > /dev/null && shellcheck "$0"
echo "Waiting for blockchain and REST server to be available ..."
timeout 60 bash -c "until curl -s http://localhost:1317/node_info > /dev/null; do sleep 0.5; done"
timeout 60 bash -c "until curl -s http://localhost:1319/node_info > /dev/null; do sleep 0.5; done"
# The chain is unreliable in the first second of its existence (https://gist.github.com/webmaster128/8175692d4af5e6c572fddda7a9ef437c)
sleep 1
echo "Okay, thank you for your patience."