February 18, 2022

Cosmic Horizon darkmatter-1 snapshot sync

# Stop the service
$ sudo systemctl stop cohod
$ cohod unsafe-reset-all

# Remove old data directory ~/.coho/data
$ rm -rf ~/.coho/data
$ mkdir -p ~/.coho/data

# Download the snapshot
$ cd ~/.coho/data
$ SNAP_NAME=$(curl -s http://51.79.68.56 | egrep -o ">darkmatter-1.*\.tar*" | tr -d ">")
$ wget -O - http://51.79.68.56/${SNAP_NAME} | tar xf -

# Start the service 
$ sudo systemctl restart cohod

# See logs 
$ sudo journalctl -u cohod -f