Skip to content

Commit

Permalink
update genesis build
Browse files Browse the repository at this point in the history
  • Loading branch information
jhernandezb committed Jul 15, 2021
1 parent f35535e commit d9225fa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build-genesis.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash

DENOM=ustarx
CHAIN_ID=cygnusx-1
CHAIN_ID=cygnusx-1a
GENTXS=cygnusx-1
ONE_HOUR=3600
ONE_DAY=$(($ONE_HOUR * 24))
ONE_YEAR=$(($ONE_DAY * 365))
Expand Down Expand Up @@ -65,7 +66,7 @@ starsd add-genesis-account stars1wppujuuqrv52atyg8uw3x779r8w72ehrr5a4yx 50000000

echo "Processing validators..."
mkdir -p ~/.starsd/config/gentx
for i in $CHAIN_ID/gentx/*.json; do
for i in $GENTXS/gentx/*.json; do
echo $i
starsd add-genesis-account $(jq -r '.body.messages[0].delegator_address' $i) $VALIDATOR_COINS \
--vesting-amount $VALIDATOR_COINS \
Expand All @@ -76,4 +77,5 @@ done
starsd collect-gentxs
starsd validate-genesis

cp ~/.starsd/config/genesis.json $CHAIN_ID
cp ~/.starsd/config/genesis.json $GENTXS
jq -S -f normalize.jq ~/.starsd/config/genesis.json > $GENTXS/sorted_genesis.json

0 comments on commit d9225fa

Please sign in to comment.