From 2e19d85b1845d8a97c064702644efdb7f87bcadb Mon Sep 17 00:00:00 2001 From: Sami Date: Mon, 15 Jun 2026 14:32:33 -0700 Subject: [PATCH] build: restore truncated checkpoints.cpp tail (committed 6defb54 was cut off mid-function) --- src/checkpoints.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp index 44f870e..ce4e744 100644 --- a/src/checkpoints.cpp +++ b/src/checkpoints.cpp @@ -442,4 +442,10 @@ bool CSyncCheckpoint::ProcessSyncCheckpoint(CNode* pfrom) } if (!Checkpoints::WriteSyncCheckpoint(hashCheckpoint)) - return error("ProcessSyncCheckpoint( \ No newline at end of file + return error("ProcessSyncCheckpoint(): failed to write sync checkpoint %s", hashCheckpoint.ToString().c_str()); + Checkpoints::checkpointMessage = *this; + Checkpoints::hashPendingCheckpoint = 0; + Checkpoints::checkpointMessagePending.SetNull(); + printf("ProcessSyncCheckpoint: sync-checkpoint at %s\n", hashCheckpoint.ToString().c_str()); + return true; +}