Skip to content

Instantly share code, notes, and snippets.

@davepuchyr
Created August 13, 2020 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davepuchyr/46d2df8b7abdf18123ae08353e31c280 to your computer and use it in GitHub Desktop.
Save davepuchyr/46d2df8b7abdf18123ae08353e31c280 to your computer and use it in GitHub Desktop.
Pick-up a Big Dipper compatible genesis file
#!/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