From ab5d578dba12e3b947870643d27ab99b9e1f65dc Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 19 Nov 2020 14:50:11 +0100 Subject: [PATCH] Set min height to 1 --- scripts/wasmd/init.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/wasmd/init.sh b/scripts/wasmd/init.sh index dacf2f3d..f3bf74a3 100755 --- a/scripts/wasmd/init.sh +++ b/scripts/wasmd/init.sh @@ -6,8 +6,8 @@ echo "Waiting for blockchain and REST server to be available ..." 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 "Waiting for height to be > 1 ..." -timeout 20 bash -c "until [ \"\$( curl -s http://localhost:1319/blocks/latest | jq -r '.block.header.height // 0' )\" -gt 1 ]; do sleep 0.5; done" +echo "Waiting for height to be >= 1 ..." +timeout 20 bash -c "until [ \"\$( curl -s http://localhost:1319/blocks/latest | jq -r '.block.header.height // 0' )\" -ge 1 ]; do sleep 0.5; done" echo "Okay, thank you for your patience."