Skip to content

Commit

Permalink
Until a better fix is implemented, echo the vote delegation type when…
Browse files Browse the repository at this point in the history
… showing current delegation status so that in case of predefined dreps being used we are showing some useful information to the user
  • Loading branch information
gregbgithub committed Nov 4, 2024
1 parent 554e98a commit 992b9a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/cnode-helper-scripts/cntools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 992b9a1

Please sign in to comment.