Stop Kichain service
systemctl stop ki-validator.service
Remove old data in directory /srv/ki/kid/data
rm -rf /srv/ki/kid/data; \
mkdir -p /srv/ki/kid/data; \
cd /srv/ki/kid/data
Download snapshot through aria2c
SNAP_LINK="https://mercury-nodes.net/kichain-snaps/"
SNAP_NAME=$(curl -s ${SNAP_LINK} | egrep -o ">kichain-2.*tar" | tr -d ">")
aria2c -x2 ${SNAP_LINK}${SNAP_NAME}
tar -xf ${SNAP_NAME}
rm -rf ${SNAP_NAME}
Download snapshot through wget
SNAP_NAME=$(curl -s https://mercury-nodes.net/kichain-snaps/ | egrep -o ">kichain-2.*tar" | tr -d ">"); \
wget -O - https://mercury-nodes.net/kichain-snaps/${SNAP_NAME} | tar xf -
Start service and check logs
systemctl start ki-validator.service; \
journalctl -u ki-validator.service -f --no-hostname