Merge pull request #9971

19fab4d wallet2: ignore checkpoints in fast_refresh when height < 1000 (Oscar Mira)
This commit is contained in:
tobtoht
2025-07-03 10:49:07 +00:00
+1 -1
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