From 1966f49ce2b1f3deb75119e946342f81c9a38b49 Mon Sep 17 00:00:00 2001 From: Sami Ahmed Date: Mon, 16 Mar 2026 18:09:38 -0700 Subject: [PATCH] Fix sync checkpoint blocking IBD, bump to v5.2.0 hashSyncCheckpoint was initialized to block 2,186,940 hash, causing CheckSync to reject ALL blocks below that height during initial block download (they aren't in mapBlockIndex yet when checked). Changed to genesis hash so IBD can proceed from block 0. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/build-all.yml | 2 +- src/checkpoints.cpp | 4 ++-- src/clientversion.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml index 75d2a37..aa14acc 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/build-all.yml @@ -9,7 +9,7 @@ on: workflow_dispatch: env: - VERSION: "5.1.9" + VERSION: "5.2.0" jobs: build-windows-qt: diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp index 7965161..2d111d5 100644 --- a/src/checkpoints.cpp +++ b/src/checkpoints.cpp @@ -87,8 +87,8 @@ namespace Checkpoints } // triangles: synchronized checkpoint (centrally broadcasted) - uint256 hashSyncCheckpoint = uint256("0xbd952e8d4a612e336d840ad924a7e09395e36bcd9d929b302e47e60b5c3098c0"); - uint256 hashPendingCheckpoint = uint256("0xbd952e8d4a612e336d840ad924a7e09395e36bcd9d929b302e47e60b5c3098c0"); + uint256 hashSyncCheckpoint = uint256("0x7e7a6e4dd5fe895106fca912dfbacaeaf2a89e76c6a588df8ff96e0e18b96021"); + uint256 hashPendingCheckpoint = uint256("0x7e7a6e4dd5fe895106fca912dfbacaeaf2a89e76c6a588df8ff96e0e18b96021"); CSyncCheckpoint checkpointMessage; CSyncCheckpoint checkpointMessagePending; uint256 hashInvalidCheckpoint = 0; diff --git a/src/clientversion.h b/src/clientversion.h index 9ba524d..463984d 100644 --- a/src/clientversion.h +++ b/src/clientversion.h @@ -7,8 +7,8 @@ // These need to be macros, as version.cpp's and triangles-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 5 -#define CLIENT_VERSION_MINOR 1 -#define CLIENT_VERSION_REVISION 9 +#define CLIENT_VERSION_MINOR 2 +#define CLIENT_VERSION_REVISION 0 #define CLIENT_VERSION_BUILD 0 // Converts the parameter X to a string after macro replacement on X has been performed.