From 992b9a1aa20d86b06ff8fb0449b0290506db25f8 Mon Sep 17 00:00:00 2001 From: Greg Beresnev Date: Mon, 4 Nov 2024 13:53:05 +1100 Subject: [PATCH] Until a better fix is implemented, echo the vote delegation type when showing current delegation status so that in case of predefined dreps being used we are showing some useful information to the user --- scripts/cnode-helper-scripts/cntools.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/cnode-helper-scripts/cntools.sh b/scripts/cnode-helper-scripts/cntools.sh index 9aff5ee1d..40768c968 100755 --- a/scripts/cnode-helper-scripts/cntools.sh +++ b/scripts/cnode-helper-scripts/cntools.sh @@ -1132,8 +1132,8 @@ function main { done < <(find "${WALLET_FOLDER}" -mindepth 1 -maxdepth 1 -type d -print0 | sort -z) fi getDRepIds ${vote_delegation_type} ${vote_delegation_hash} - println "Delegation : CIP-105 => ${FG_LGRAY}${drep_id}${NC}" - println " : CIP-129 => ${FG_LGRAY}${drep_id_cip129}${NC}" + println "Delegation : CIP-105 => ${FG_LGRAY}${vote_delegation_type} ${drep_id}${NC}" + println " : CIP-129 => ${FG_LGRAY}${vote_delegation_type} ${drep_id_cip129}${NC}" if [[ -n ${walletName} ]]; then println " : Wallet => ${FG_GREEN}${walletName}${NC}" fi @@ -3881,8 +3881,8 @@ function main { done < <(find "${WALLET_FOLDER}" -mindepth 1 -maxdepth 1 -type d -print0 | sort -z) fi getDRepIds ${vote_delegation_type} ${vote_delegation_hash} - println "Delegation : CIP-105 => ${FG_LGRAY}${drep_id}${NC}" - println " : CIP-129 => ${FG_LGRAY}${drep_id_cip129}${NC}" + println "Delegation : CIP-105 => ${FG_LGRAY}${vote_delegation_type} ${drep_id}${NC}" + println " : CIP-129 => ${FG_LGRAY}${vote_delegation_type} ${drep_id_cip129}${NC}" if [[ -n ${walletName} ]]; then println " : Wallet => ${FG_GREEN}${walletName}${NC}" fi