Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions script/upgrades.sh
Original file line number Diff line number Diff line change
Expand Up @@ -545,11 +545,14 @@ function prepare_state() {

valdir=$validators_dir/.akash${cnt}

valjson=$(cat "$valdir/validator.json")
valjsonfile="$valdir/validator.json"

if [[ $cnt -gt 0 ]]; then
if [[ $($semver compare "$akashversion" v1.0.0-rc0) -ge 0 ]]; then
$AKASH tx staking create-validator "$valjson" --home="$rvaldir" --from="validator$cnt" --yes
$AKASH tx staking create-validator "$valjsonfile" --home="$rvaldir" --from="validator$cnt" --yes
else
valjson=$(cat "$valjsonfile")

$AKASH tx staking create-validator \
--home="$rvaldir" \
--moniker="$(jq -rc '.moniker' <<<"$valjson")" \
Expand Down
Loading