Created
August 25, 2020 09:52
-
-
Save davepuchyr/9ea3132bcaeaba19fe2386e265134dd2 to your computer and use it in GitHub Desktop.
Quick start for iov-mainnet-2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo su | |
systemctl stop starname.service | |
su - ${USER_IOV} | |
set -o allexport ; source /etc/systemd/system/starname.env ; set +o allexport # pick-up env vars | |
export PATH=${DIR_IOVNS}:$PATH | |
export GENESIS_URL=https://gist.githubusercontent.com/davepuchyr/4fe7e002061c537ddb116fee7a2f8e47/raw/2ac02aea0e7ba2e0aab6cd00819a4d8d45c30f29/genesis.json | |
export GENESIS_FILE=${DIR_WORK}/config/genesis.json | |
iovnsd unsafe-reset-all --home ${DIR_WORK} | |
curl $GENESIS_URL > $GENESIS_FILE | |
jq .chain_id $GENESIS_FILE | |
jq .genesis_time $GENESIS_FILE | |
sha256sum $GENESIS_FILE | grep 27898a4fb858ddee28202b6f8e8d0f4b608d9587f39529f7a18be331c5d7a4fc || echo -e "\033[0;31mBAD GENESIS FILE\033[0m" | |
exit # ${USER_IOV} | |
systemctl start starname.service # wait for genesis_time | |
exit # sudo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment