Skip to content

Commit

Permalink
add version requirement (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhernandezb authored Jul 13, 2021
1 parent 538bce8 commit cf49af5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build-genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ ONE_HOUR=3600
ONE_DAY=$(($ONE_HOUR * 24))
ONE_YEAR=$(($ONE_DAY * 365))
VALIDATOR_COINS=1000000000000$DENOM
REQUIRED_VERSION="0.9.3"
VERSION="$(starsd version | awk '{print $NF}')"
if [ "$VERSION" != "$REQUIRED_VERSION" ]; then
echo "starsd required $REQUIRED_VERSION, current $VERSION"
exit 1
fi

if [ "$1" == "mainnet" ]
then
Expand Down

0 comments on commit cf49af5

Please sign in to comment.