aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-09-11 01:04:44 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-09-11 01:04:44 +0000
commit62fc4bec4c92f1b509304c545f6e8c810e56c0c7 (patch)
tree7908d922c3a4087dbc6cd9ca3ff01ca28545bb35 /src/cryptonote_protocol
parentRevert "Fix check for disconnecting peers when syncing" (diff)
downloadmonero-62fc4bec4c92f1b509304c545f6e8c810e56c0c7.tar.xz
Revert "cryptonote_protocol: drop peers we can't download from when syncing"
This reverts commit a96c1a46d4b3854252de75cbe09458ad5d1aecb0.
Diffstat (limited to 'src/cryptonote_protocol')
-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 e050dda05..9f01a7320 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 > hshd.current_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();