Update auto-fix-qortal.sh

fixed typo in remote height check
This commit is contained in:
crowetic 2024-06-26 17:33:06 -07:00 committed by GitHub
parent df19bb813a
commit eafa42dddf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -290,13 +290,13 @@ remote_height_checks() {
fi fi
if [ "$height_api_qortal_org" -ge $((local_height - 1500)) ] && [ "$height_api_qortal_org" -le $((local_height + 1500)) ]; then if [ "$height_api_qortal_org" -ge $((local_height - 1500)) ] && [ "$height_api_qortal_org" -le $((local_height + 1500)) ]; then
echo "${YELLOW}Local height ${NC}(${CYAN}${local_height}${NC})${YELLOW} is within 1500 block range of node height ${NC}(${GREEN}${height_api_qortal_org}${NC})." echo "${YELLOW}Local height ${NC}(${CYAN}${local_height}${NC})${YELLOW} is within 1500 block range of api.qortal.org node height ${NC}(${GREEN}${height_api_qortal_org}${NC})."
echo "${GREEN}api.qortal.org height checks PASSED updating script...${NC}" echo "${GREEN}api.qortal.org height checks PASSED updating script...${NC}"
update_script update_script
else else
echo "${RED}Node is outside the 1500 block range of api.qortal.org, checking another node to be sure...${NC}" echo "${RED}Node is outside the 1500 block range of api.qortal.org, checking another node to be sure...${NC}"
if [ "$height_qortal_link" -ge $((local_height - 1500)) ] && [ "$height_qortal_link" -le $((local_height+ 1500)) ]; then if [ "$height_qortal_link" -ge $((local_height - 1500)) ] && [ "$height_qortal_link" -le $((local_height + 1500)) ]; then
echo "${YELLOW}Local height ${NC}(${CYAN}${local_height}${NC})${YELLOW} is within 1500 block range of node height ${NC}(${GREEN}${height_qortal_link}${NC})." echo "${YELLOW}Local height ${NC}(${CYAN}${local_height}${NC})${YELLOW} is within 1500 block range of qortal.link node height ${NC}(${GREEN}${height_qortal_link}${NC})."
echo "${GREEN}qortal.link height checks PASSED updating script...${NC}" echo "${GREEN}qortal.link height checks PASSED updating script...${NC}"
update_script update_script
else else