diff --git a/scripts/cnode-helper-scripts/env b/scripts/cnode-helper-scripts/env index 49689146c..5701fa085 100644 --- a/scripts/cnode-helper-scripts/env +++ b/scripts/cnode-helper-scripts/env @@ -717,12 +717,14 @@ kesExpiration() { # Parameters : pool name > the name of the pool # Return : populates ${pool_id} & ${pool_id_bech32} getPoolID() { - pool_id_file="${POOL_FOLDER}/${1}/${POOL_ID_FILENAME}" - pool_id_bech32_file="${POOL_FOLDER}/${1}/${POOL_ID_FILENAME}-bech32" + local pool_dir + [[ -z "${1}" ]] && pool_dir="${POOL_DIR}" || pool_dir="${POOL_FOLDER}/${1}" + pool_id_file="${pool_dir}/${POOL_ID_FILENAME}" + pool_id_bech32_file="${pool_dir}/${POOL_ID_FILENAME}-bech32" [[ -f ${pool_id_file} && -f ${pool_id_bech32_file} ]] && pool_id=$(cat ${pool_id_file}) && pool_id_bech32=$(cat ${pool_id_bech32_file}) && return 0 pool_id="" pool_id_bech32="" - pool_coldkey_vk_file="${POOL_FOLDER}/${1}/${POOL_COLDKEY_VK_FILENAME}" + pool_coldkey_vk_file="${pool_dir}/${POOL_COLDKEY_VK_FILENAME}" if [[ -f ${pool_coldkey_vk_file} ]]; then println ACTION "${CCLI} stake-pool id --cold-verification-key-file ${pool_coldkey_vk_file} --output-format hex" println ACTION "${CCLI} stake-pool id --cold-verification-key-file ${pool_coldkey_vk_file}" diff --git a/scripts/cnode-helper-scripts/gLiveView.sh b/scripts/cnode-helper-scripts/gLiveView.sh index 41a911335..9a9f03665 100755 --- a/scripts/cnode-helper-scripts/gLiveView.sh +++ b/scripts/cnode-helper-scripts/gLiveView.sh @@ -59,7 +59,7 @@ setTheme() { # Do NOT modify code below # ###################################### -GLV_VERSION=v1.28.0 +GLV_VERSION=v1.28.1 PARENT="$(dirname $0)" @@ -721,7 +721,7 @@ screen_upd_cnt=0 test_koios # KOIOS_API variable unset if check fails. Only tested once on startup. pool_info_file=/dev/shm/pool_info pool_info_error_file=/dev/shm/pool_info_error -[[ -n ${KOIOS_API} ]] && getPoolID ${POOL_NAME} +[[ -n ${KOIOS_API} ]] && getPoolID getOpCert