From ea92a32f725c3f8c82bda6002bff3c7f9ae3e65b Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 11 Sep 2019 01:04:01 +0000 Subject: [PATCH] Revert "Fix check for disconnecting peers when syncing" This reverts commit adc16d2504d3e76b0115791caf10446684d45433. --- src/cryptonote_protocol/cryptonote_protocol_handler.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index 65115ee72..e050dda05 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -342,7 +342,7 @@ namespace cryptonote if(m_core.have_block(hshd.top_id)) { - if (target > m_core.get_current_blockchain_height()) + if (target > hshd.current_height) { MINFO(context << "peer is not ahead of us and we're syncing, disconnecting"); return false;