diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-12-12 22:01:37 -0600 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-12-12 22:01:37 -0600 |
commit | 66c427e863dc8d784070224b2149d25e5a59586e (patch) | |
tree | 1903a21eaf3072d4dbb76df7636100dcaa0cd1f0 /src | |
parent | Merge pull request #6495 (diff) | |
parent | protocol: revert incoming chain height check against local chain (diff) | |
download | monero-66c427e863dc8d784070224b2149d25e5a59586e.tar.xz |
Merge pull request #7123
62e8ca5 protocol: revert incoming chain height check against local chain (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 2 |
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); |