aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-09-24 10:39:28 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-09-24 10:39:28 -0500
commit5fe38977b525dc6ccfd712d2b07fb8ec5078aa82 (patch)
tree3e734747d6a8ca98fc6ee36ed09f5c4b50d78885 /src
parentMerge pull request #5892 (diff)
parentRevert "cryptonote_protocol: drop peers we can't download from when syncing" (diff)
downloadmonero-5fe38977b525dc6ccfd712d2b07fb8ec5078aa82.tar.xz
Merge pull request #5905
Revert a96c1a4 and adc16d2 (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
index 6d1ad0405..82f9f96a0 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -342,11 +342,6 @@ namespace cryptonote
if(m_core.have_block(hshd.top_id))
{
- if (target > m_core.get_current_blockchain_height())
- {
- MINFO(context << "peer is not ahead of us and we're syncing, disconnecting");
- return false;
- }
context.m_state = cryptonote_connection_context::state_normal;
if(is_inital && target == m_core.get_current_blockchain_height())
on_connection_synchronized();