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
remotes/1691602464505633909/tmp_refs/heads/wonerujo-v0.10.1
moneromooo-monero 3 years ago
parent 7a9ba3f154
commit d6069f7ded
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -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…
Cancel
Save