Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 880 Bytes

kichain.md

File metadata and controls

33 lines (29 loc) · 880 Bytes

Download latest snapshot (using the example of Kichain)

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