Skip to content

Commit

Permalink
Fix for op cert if glv is started before node is ready in core mode. (#…
Browse files Browse the repository at this point in the history
…1713)

## Description
Minor fix for opcert to re-run check if node goes from relay to core
mode on startup.
  • Loading branch information
Scitz0 authored and rdlrt committed Nov 29, 2023
1 parent 916af3b commit 620c389
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/cnode-helper-scripts/gLiveView.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ setTheme() {
# Do NOT modify code below #
######################################

GLV_VERSION=v1.28.1
GLV_VERSION=v1.28.2

PARENT="$(dirname $0)"

Expand Down Expand Up @@ -823,7 +823,7 @@ while true; do
cpu_util="0.0"
fi
if [[ ${about_to_lead} -gt 0 ]]; then
[[ ${nodemode} != "Core" ]] && clrScreen && nodemode="Core"
[[ ${nodemode} != "Core" ]] && nodemode="Core" && getOpCert && clrScreen
else
[[ ${nodemode} != "Relay" ]] && clrScreen && nodemode="Relay"
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/grest-helper-scripts/setup-grest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ SGVERSION=v1.1.0
# Description : Remove all grest-related cron entries.
remove_all_grest_cron_jobs() {
printf "\nRemoving all installed cron jobs..."
grep -rl ${CRON_SCRIPTS_DIR} ${CRON_DIR} | xargs rm -f
grep -rl ${CRON_SCRIPTS_DIR} ${CRON_DIR} | xargs sudo rm -f
rm -f ${CRON_SCRIPTS_DIR}/*.sh
psql "${PGDATABASE}" -qt -c "SELECT PG_CANCEL_BACKEND(pid) FROM pg_stat_activity WHERE usename='${USER}' AND application_name = 'psql' AND query NOT LIKE '%pg_stat_activity%';"
psql "${PGDATABASE}" -qt -c "SELECT PG_TERMINATE_BACKEND(pid) FROM pg_stat_activity WHERE usename='${USER}' AND application_name = 'psql' AND query NOT LIKE '%pg_stat_activity%';"
Expand Down

0 comments on commit 620c389

Please sign in to comment.