aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-12-12 22:02:20 -0600
committerluigi1111 <luigi1111w@gmail.com>2020-12-12 22:02:20 -0600
commit31390dce4d033132b61642409ca37313248f536c (patch)
tree51b2784638c2b832013e12f2d059358c090d157f
parentMerge pull request #7122 (diff)
parentprotocol: revert incoming chain height check against local chain (diff)
downloadmonero-31390dce4d033132b61642409ca37313248f536c.tar.xz
Merge pull request #7124
d6069f7 protocol: revert incoming chain height check against local chain (moneromooo-monero)
-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 4fca948a8..75ca766ba 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);