wallet2: ignore checkpoints in fast_refresh when height < 1000

This commit is contained in:
Oscar Mira
2025-06-27 00:35:56 +02:00
parent c572e1ad00
commit 19fab4d38e

View File

@@ -3888,7 +3888,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