Created
August 20, 2020 18:18
-
-
Save davepuchyr/d5d841b0bedc2b3bc059423ce8a8f244 to your computer and use it in GitHub Desktop.
Pick-up corrected genesis.json for galaxynet
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 | |
# update the persistent peer | |
set -o allexport ; source /etc/systemd/system/starname.env ; set +o allexport # pick-up env vars | |
sudo sed --in-place 's/8c059fd8d3049f6a7d81746ad35a0fd7662cad3a/c0a71edc987eb78b8c7b99b9963c6429bc9c8f1e/' ${DIR_IOVNS}/iovnsd.sh | |
# reset data | |
su ${USER_IOV} | |
set -o allexport ; source /etc/systemd/system/starname.env ; set +o allexport # pick-up env vars | |
${DIR_IOVNS}/iovnsd unsafe-reset-all --home ${DIR_WORK} | |
# pull the genesis file | |
curl --fail https://rpc.cluster-galaxynet.iov.one/genesis | jq -r .result.genesis > ${DIR_WORK}/config/genesis.json | |
sha256sum ${DIR_WORK}/config/genesis.json | grep cff2bbe4f7c9ccc3900bf5879153e1622cd383609eca9d086147fc9c08078b83 || echo 'BAD GENESIS FILE!' | |
exit # ${USER_IOV} | |
systemctl start starname.service | |
exit # sudo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment