Created
August 13, 2020 17:51
-
-
Save davepuchyr/46d2df8b7abdf18123ae08353e31c280 to your computer and use it in GitHub Desktop.
Pick-up a Big Dipper compatible genesis file
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 systemctl stop starname.service | |
# 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://gist.githubusercontent.com/davepuchyr/e1482e63cb81443cde1616f353c4779f/raw/genesis.json > ${DIR_WORK}/config/genesis.json | |
sha256sum ${DIR_WORK}/config/genesis.json | grep 6ddf66966bb7b0f926cd90d363dbe592bb67fc07f2ad7bb749ab1302fea56e26 || echo 'BAD GENESIS FILE!' | |
exit # ${USER_IOV} | |
sudo systemctl start starname.service # wait for genesis_time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment