mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-28 03:15:13 -07:00
Merge pull request #6753
4ff2074c7
cryptonote_protocol: don't synced pruned blocks before v11 (cohcho)
This commit is contained in:
commit
dd7fd2ef80
@ -1937,8 +1937,8 @@ skip:
|
||||
if (local_stripe == 0)
|
||||
return false;
|
||||
// don't request pre-bulletprooof pruned blocks, we can't reconstruct their weight (yet)
|
||||
static const uint64_t bp_fork_height = m_core.get_earliest_ideal_height_for_version(8);
|
||||
if (first_block_height + nblocks - 1 < bp_fork_height)
|
||||
static const uint64_t bp_fork_height = m_core.get_earliest_ideal_height_for_version(HF_VERSION_SMALLER_BP);
|
||||
if (first_block_height < bp_fork_height)
|
||||
return false;
|
||||
// assumes the span size is less or equal to the stripe size
|
||||
bool full_data_needed = tools::get_pruning_stripe(first_block_height, context.m_remote_blockchain_height, CRYPTONOTE_PRUNING_LOG_STRIPES) == local_stripe
|
||||
|
Loading…
Reference in New Issue
Block a user