cardano-docker/scripts/functions/wait_for_socket

17 lines
424 B
Plaintext
Raw Normal View History

2021-02-13 15:19:38 +00:00
function wait_for_socket {
source /scripts/init_node_vars
while true; do
OUT=$(get_slot)
if [[ -z "$OUT" ]]; then
echo ""
echo "Waiting for cardano-node to read the blockchain and start the socket. May take a while."
echo "Trying again..."
sleep 10
else
echo "Socket to node is functional."
break
fi
done
}