cardano-docker/scripts/functions/wait_for_address_registration

13 lines
399 B
Plaintext
Raw Normal View History

2021-02-13 15:19:38 +00:00
function wait_for_address_registration {
source /scripts/functions/check_address_registration
STAKE_ADDR=$1
echo "Waiting for the blockchain to register the address."
while true; do
if [ -n "$(check_address_registration ${STAKE_ADDR})" ]; then
break
fi
echo "Blockchain has not yet registered the address. Waiting.."
sleep 10
done
}