diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-09-11 01:04:01 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-09-11 01:04:01 +0000 |
commit | ea92a32f725c3f8c82bda6002bff3c7f9ae3e65b (patch) | |
tree | 7376ea6b9ee0f2ea7cbbd33625998d75d01d74b0 | |
parent | Merge pull request #5876 (diff) | |
download | monero-ea92a32f725c3f8c82bda6002bff3c7f9ae3e65b.tar.xz |
Revert "Fix check for disconnecting peers when syncing"
This reverts commit adc16d2504d3e76b0115791caf10446684d45433.
-rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 2 |
1 files changed, 1 insertions, 1 deletions
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; |