Merge pull request #7123

62e8ca5 protocol: revert incoming chain height check against local chain (moneromooo-monero)
This commit is contained in:
luigi1111 2020-12-12 22:01:37 -06:00
commit 66c427e863
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -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);