Skip to content

Commit

Permalink
Merge branch 'alpha' into glv-1.29.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Scitz0 authored Feb 14, 2024
2 parents 4a64a3f + b790be1 commit 314c132
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions docs/Scripts/cntools-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ All notable changes to this tool will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [12.0.2] - 2024-02-11
#### Fixed
- Retiring pools should be modifiable in case the user wants to cancel the pending retirement.

## [12.0.1] - 2024-01-26
#### Fixed
- Funds > Send had a regression introduced in 12.0.0 thats now fixed (thanks Homer :)
Expand Down
11 changes: 7 additions & 4 deletions scripts/cnode-helper-scripts/cntools.library
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CNTOOLS_MAJOR_VERSION=12
# Minor: Changes and features of minor character that can be applied without breaking existing functionality or workflow
CNTOOLS_MINOR_VERSION=0
# Patch: Backwards compatible bug fixes. No additional functionality or major changes
CNTOOLS_PATCH_VERSION=1
CNTOOLS_PATCH_VERSION=2

CNTOOLS_VERSION="${CNTOOLS_MAJOR_VERSION}.${CNTOOLS_MINOR_VERSION}.${CNTOOLS_PATCH_VERSION}"

Expand Down Expand Up @@ -542,7 +542,8 @@ selectPool() {
0) println "ERROR" "KOIOS_API: ${error_msg}" &>/dev/null ;; # log error without printing but show pool
1) [[ ${mode} = "reg" ]] && continue ;;
2) [[ ${mode} = "non-reg" ]] && continue ;;
3) [[ ${mode} = "reg" ]] && continue ;;
3) [[ ${mode} = "non-reg" ]] && continue ;;
4) [[ ${mode} = "reg" ]] && continue ;;
esac
fi
pool_dirs+=("${dir}")
Expand All @@ -564,7 +565,8 @@ selectPool() {
# Return : 0 => error quering KOIOS API (error message saved in ${error_msg})
# 1 => NOT registered
# 2 => registered
# 3 => retiring/retired (only for KOIOS API)
# 3 => retiring (only for KOIOS API)
# 4 => retired (only for KOIOS API)
isPoolRegistered() {
unset error_msg pool_info pool_info_tsv pool_info_arr
unset p_active_epoch_no p_vrf_key_hash p_margin p_fixed_cost p_pledge p_reward_addr p_owners p_relays p_meta_url p_meta_hash p_meta_json p_pool_status
Expand Down Expand Up @@ -626,7 +628,8 @@ isPoolRegistered() {
p_live_delegators=${pool_info_arr[19]}
p_live_saturation=${pool_info_arr[20]}

[[ ${p_pool_status} = 'registered' ]] && return 2 || return 3
[[ ${p_pool_status} = 'registered' ]] && return 2
[[ ${p_pool_status} = 'retiring' ]] && return 3 || return 4
fi
}

Expand Down

0 comments on commit 314c132

Please sign in to comment.