Skip to content

cryptape/ckb-sync

Repository files navigation

Usage

# There is an 8-hour time difference. The task starts at 9:30 AM every day.
30 1 * * * cd /home/ckb/scz/ckb-sync && sudo bash sync.sh >> sync.log 2>&1
# Statistics are collected at 10 and 40 minutes past every hour.
10,40 * * * * cd /home/ckb/scz/ckb-sync && sudo bash get_diff.sh

Instructions

Python3 and packages such as discord and python-dotenv need to be installed on the server for testing synchronization.

sudo apt-get install jq python3-pip -y
sudo pip install discord python-dotenv

Please configure the .env file for sending test reports.

DISCORD_CHANNEL_ID=YOUR_DISCORD_CHANNEL_ID
DISCORD_TOKEN=YOUR_DISCORD_TOKEN