mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-29 18:53:14 +00:00
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
This commit is contained in:
parent
ebdc617408
commit
62e8ca5eaf
1 changed files with 1 additions and 1 deletions
|
@ -2491,7 +2491,7 @@ skip:
|
||||||
drop_connection(context, true, false);
|
drop_connection(context, true, false);
|
||||||
return 1;
|
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");
|
LOG_ERROR_CCONTEXT("sent invalid start/nblocks/height, dropping connection");
|
||||||
drop_connection(context, true, false);
|
drop_connection(context, true, false);
|
||||||
|
|
Loading…
Reference in a new issue