From 8a9906686137cef88a68a3b92dff23ef1398eb88 Mon Sep 17 00:00:00 2001 From: Oscar Mira Date: Fri, 27 Jun 2025 00:35:56 +0200 Subject: [PATCH] wallet2: ignore checkpoints in fast_refresh when height < 1000 (cherry picked from commit 3b268ae2854f6e1d24203b5fd64e2dc5d42bc940) --- src/wallet/wallet2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 366a51a49..ba4d0a316 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3953,7 +3953,7 @@ void wallet2::fast_refresh(uint64_t stop_height, uint64_t &blocks_start_height, { std::vector hashes; - const uint64_t checkpoint_height = m_checkpoints.get_nearest_checkpoint_height(stop_height); + const uint64_t checkpoint_height = (stop_height < 1000) ? 0 : m_checkpoints.get_nearest_checkpoint_height(stop_height); if ((stop_height > checkpoint_height && m_blockchain.size()-1 < checkpoint_height) && !force) { // we will drop all these, so don't bother getting them