aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-11 02:35:50 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-11 02:37:15 +0000
commit62e8ca5eaf05da026acb59aa8fd2d2fabbdaa63f (patch)
treea50d09b0d22806d94a0d665057cd69ac11009d3e /src/cryptonote_protocol
parentMerge pull request #7102 (diff)
downloadmonero-62e8ca5eaf05da026acb59aa8fd2d2fabbdaa63f.tar.xz
protocol: revert incoming chain height check against local chain
We can actually request a chain that's further away from what we have as we buffer more and more
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 27f8888bb..8498f0504 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -2491,7 +2491,7 @@ skip:
drop_connection(context, true, false);
return 1;
}
- if (arg.total_height < arg.m_block_ids.size() || arg.start_height > arg.total_height - arg.m_block_ids.size() || arg.start_height >= m_core.get_current_blockchain_height())
+ if (arg.total_height < arg.m_block_ids.size() || arg.start_height > arg.total_height - arg.m_block_ids.size())
{
LOG_ERROR_CCONTEXT("sent invalid start/nblocks/height, dropping connection");
drop_connection(context, true, false);