From 8c081b4b0280dc592a2158a1e8ec81663928470d Mon Sep 17 00:00:00 2001 From: wowario Date: Sun, 12 Feb 2023 12:33:34 +0300 Subject: [PATCH] don't request pre-bulletprooof pruned blocks --- src/cryptonote_protocol/cryptonote_protocol_handler.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index 60af8cb5f..d5a8866e0 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -2272,7 +2272,7 @@ skip: } const uint64_t first_block_height = context.m_last_response_height - context.m_needed_objects.size() + 1; - static const uint64_t bp_fork_height = m_core.get_earliest_ideal_height_for_version(8); + static const uint64_t bp_fork_height = m_core.get_earliest_ideal_height_for_version(HF_VERSION_SMALLER_BP +1); bool sync_pruned_blocks = m_sync_pruned_blocks && first_block_height >= bp_fork_height && m_core.get_blockchain_pruning_seed(); span = m_block_queue.reserve_span(first_block_height, context.m_last_response_height, count_limit, context.m_connection_id, context.m_remote_address, sync_pruned_blocks, m_core.get_blockchain_pruning_seed(), context.m_pruning_seed, context.m_remote_blockchain_height, context.m_needed_objects); MDEBUG(context << " span from " << first_block_height << ": " << span.first << "/" << span.second);