aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-10 18:10:45 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-10 22:56:52 +0000
commit105afa5557b9e596caa27455cb2efb970bd1842e (patch)
tree32dc466f036c2b565c4ab0be3189287e44794693 /src/cryptonote_protocol
parentMerge pull request #7109 (diff)
downloadmonero-105afa5557b9e596caa27455cb2efb970bd1842e.tar.xz
protocol: fix asking for pruned blocks for v10
Old format is still alloewd there, this is a two fork update
Diffstat (limited to 'src/cryptonote_protocol')
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
index c62a0cd31..4a70c30e5 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -1992,7 +1992,7 @@ 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(HF_VERSION_SMALLER_BP);
+ static const uint64_t bp_fork_height = m_core.get_earliest_ideal_height_for_version(HF_VERSION_SMALLER_BP + 1);
if (first_block_height < bp_fork_height)
return false;
// assumes the span size is less or equal to the stripe size