Skip to content

Commit

Permalink
fix wallet registration check
Browse files Browse the repository at this point in the history
  • Loading branch information
Scitz0 committed Jul 25, 2024
1 parent 310f9a5 commit 05df9ce
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/cnode-helper-scripts/cntools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1721,8 +1721,7 @@ function main {
println ERROR "\n${FG_RED}ERROR${NC}: no base funds available for wallet ${FG_GREEN}${wallet_name}${NC}"
waitToProceed && continue
fi
getWalletRewards ${wallet_name}
if [[ ${reward_lovelace} -eq -1 ]]; then
if ! isWalletRegistered ${wallet_name}; then
if [[ ${op_mode} = "online" ]]; then
if ! registerStakeWallet ${wallet_name}; then waitToProceed && continue; fi
# re-fetch balance to get a fresh set of utxos
Expand Down Expand Up @@ -3979,8 +3978,7 @@ function main {
2) continue ;;
esac
_wallet_name="${wallet_name}"
getWalletRewards ${wallet_name} true
if [[ ${reward_lovelace} -eq -1 ]]; then
if ! isWalletRegistered ${wallet_name}; then
if [[ ${op_mode} = "online" ]]; then
if ! registerStakeWallet ${wallet_name}; then waitToProceed && continue; fi
else
Expand Down

0 comments on commit 05df9ce

Please sign in to comment.