{"id":22191973,"url":"https://github.com/cryptape/ckb-sync","last_synced_at":"2025-10-09T02:28:57.491Z","repository":{"id":225965602,"uuid":"767363549","full_name":"cryptape/ckb-sync","owner":"cryptape","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-09T09:41:48.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-11T18:23:48.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cryptape.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-05T06:50:02.000Z","updated_at":"2025-06-09T09:41:52.000Z","dependencies_parsed_at":"2024-03-05T08:28:02.293Z","dependency_job_id":"bda292b2-5f32-4277-a1ee-3ae2d0cbea33","html_url":"https://github.com/cryptape/ckb-sync","commit_stats":null,"previous_names":["cryptape/ckb-sync"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cryptape/ckb-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptape%2Fckb-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptape%2Fckb-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptape%2Fckb-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptape%2Fckb-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptape","download_url":"https://codeload.github.com/cryptape/ckb-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptape%2Fckb-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000780,"owners_count":26082906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T12:18:34.639Z","updated_at":"2025-10-09T02:28:57.457Z","avatar_url":"https://github.com/cryptape.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Usage\n```bash\n# Start or restart ckb every two hours.\n20 */2 * * * cd /home/ckb/scz/ckb-sync \u0026\u0026 sudo bash sync.sh \u003e\u003e sync.log 2\u003e\u00261\n# Statistics are collected every 20 minutes.\n10,30,50 * * * * cd /home/ckb/scz/ckb-sync \u0026\u0026 sudo bash get_diff.sh \u003e\u003e get_diff.log 2\u003e\u00261\n```\n## Instructions\nPython3 and packages such as discord and python-dotenv need to be installed on the server for testing synchronization.\n```bash\nsudo apt-get install jq python3-pip -y\n```\n```bash\nsudo pip install discord python-dotenv\n```\nPlease configure the .env file for sending test reports.\n```dotenv\nDISCORD_CHANNEL_ID=YOUR_DISCORD_CHANNEL_ID\nDISCORD_TOKEN=YOUR_DISCORD_TOKEN\n```\n## exit the SSH session\n1. control + A\n2. D\n## Debug\nIf there are problems with CKB sync, you can use the following command and enable the debug configuration in the ckb.toml file to help identify the issue.\n```bash\ncurl -s -X POST 127.0.0.1:8114  -H 'Content-Type: application/json' -d '{ \"id\": 42, \"jsonrpc\": \"2.0\", \"method\": \"sync_state\", \"params\": [] }' | jq\ncurl -s -X POST 127.0.0.1:8114  -H 'Content-Type: application/json' -d '{ \"id\": 42, \"jsonrpc\": \"2.0\", \"method\": \"get_peers\", \"params\": [] }' | jq | grep last_common_header_number\n```\nLine 13 of ckb.toml\n\n`filter = \"info,ckb=debug\"`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptape%2Fckb-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptape%2Fckb-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptape%2Fckb-sync/lists"}