mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
Merge pull request #7124
d6069f7
protocol: revert incoming chain height check against local chain (moneromooo-monero)
This commit is contained in:
commit
31390dce4d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue