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 }