Skip to content

Commit

Permalink
gLiveView v1.30.4 (#1828)
Browse files Browse the repository at this point in the history
## Description
Fixes an issue for op cert parsing for new pool registrations
  • Loading branch information
Scitz0 authored Oct 16, 2024
1 parent e1e1072 commit fc9d300
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions scripts/cnode-helper-scripts/gLiveView.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ setTheme() {
# Do NOT modify code below #
######################################

GLV_VERSION=v1.30.3
GLV_VERSION=v1.30.4

PARENT="$(dirname $0)"

Expand Down Expand Up @@ -538,13 +538,9 @@ getOpCert () {
fi
fi
if [[ -f ${opcert_file} ]]; then
op_cert_tsv=$(jq -r '[
.qKesNodeStateOperationalCertificateNumber //"?",
.qKesOnDiskOperationalCertificateNumber //"?"
] | @tsv' <<<"$(${CCLI} ${NETWORK_ERA} query kes-period-info ${NETWORK_IDENTIFIER} --op-cert-file "${opcert_file}" | grep "^[{ }]")")
read -ra op_cert_arr <<< ${op_cert_tsv}
isNumber ${op_cert_arr[0]} && op_cert_chain=${op_cert_arr[0]}
isNumber ${op_cert_arr[1]} && op_cert_disk=${op_cert_arr[1]}
op_cert="$(${CCLI} ${NETWORK_ERA} query kes-period-info ${NETWORK_IDENTIFIER} --op-cert-file "${opcert_file}")"
[[ ${op_cert} =~ qKesNodeStateOperationalCertificateNumber.:[[:space:]]([0-9]+) ]] && op_cert_chain="${BASH_REMATCH[1]}"
[[ ${op_cert} =~ qKesOnDiskOperationalCertificateNumber.:[[:space:]]([0-9]+) ]] && op_cert_disk="${BASH_REMATCH[1]}"
fi
}

Expand Down

0 comments on commit fc9d300

Please sign in to comment.