From 19fab4d38ed1ce5d2f0d278f87940962f9d89c64 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 --- 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 9050867f5..74a353dd1 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3888,7 +3888,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