Skip to content

Commit 93fbcc1

Browse files
committed
Skip offline transaction on migration
1 parent 7c48d17 commit 93fbcc1

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

install.sh

+21-21
Original file line numberDiff line numberDiff line change
@@ -543,28 +543,28 @@ ensure_accounts_are_offline() {
543543
return
544544
fi
545545

546-
if [[ ${container_id} == "" ]]; then
547-
echo "Skipping account offline check as no existing Voi Swarm container could be found."
548-
return
549-
fi
550-
551-
display_banner "Migrating to new network. Ensuring all accounts are offline."
552-
553-
echo "Checking if accounts are online and have a balance of 1,000 microVoi or more."
554-
echo "Accounts with a balance of 1,000 microVoi or more will be taken offline."
555-
556-
for account in ${account_addresses}; do
557-
local balance
558-
balance=$(get_account_balance "${account}")
559-
account_status=$(execute_docker_command "/node/bin/goal account dump -a ${account}" | jq -r .onl)
546+
# if [[ ${container_id} == "" ]]; then
547+
# echo "Skipping account offline check as no existing Voi Swarm container could be found."
548+
# return
549+
# fi
560550

561-
if [[ ${balance} -ge 1000 && ${account_status} -eq 1 ]]; then
562-
echo ""
563-
echo "Balance is ${balance} which is above 1,000 microVoi. Taking account ${account} offline."
564-
execute_interactive_docker_command "/node/bin/goal account changeonlinestatus -a ${account} -o=false"
565-
echo "Account ${account} is now offline!"
566-
fi
567-
done
551+
# display_banner "Migrating to new network. Ensuring all accounts are offline."
552+
#
553+
# echo "Checking if accounts are online and have a balance of 1,000 microVoi or more."
554+
# echo "Accounts with a balance of 1,000 microVoi or more will be taken offline."
555+
#
556+
# for account in ${account_addresses}; do
557+
# local balance
558+
# balance=$(get_account_balance "${account}")
559+
# account_status=$(execute_docker_command "/node/bin/goal account dump -a ${account}" | jq -r .onl)
560+
#
561+
# if [[ ${balance} -ge 1000 && ${account_status} -eq 1 ]]; then
562+
# echo ""
563+
# echo "Balance is ${balance} which is above 1,000 microVoi. Taking account ${account} offline."
564+
# execute_interactive_docker_command "/node/bin/goal account changeonlinestatus -a ${account} -o=false"
565+
# echo "Account ${account} is now offline!"
566+
# fi
567+
# done
568568
}
569569

570570
get_participation_key_id_from_vote_key() {

0 commit comments

Comments
 (0)