wallet2: ignore checkpoints in fast_refresh when height < 1000

(cherry picked from commit 3b268ae2854f6e1d24203b5fd64e2dc5d42bc940)
This commit is contained in:
Oscar Mira
2026-10-04 18:50:21 -04:00
committed by such-gitea
parent cd9b1b65e9
commit 8a99066861
+1 -1
View File
@@ -3953,7 +3953,7 @@ void wallet2::fast_refresh(uint64_t stop_height, uint64_t &blocks_start_height,
{
std::vector<crypto::hash> 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