aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/cryptonote_protocol_handler.inl
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-09-11 01:04:01 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-09-11 01:04:01 +0000
commitea92a32f725c3f8c82bda6002bff3c7f9ae3e65b (patch)
tree7376ea6b9ee0f2ea7cbbd33625998d75d01d74b0 /src/cryptonote_protocol/cryptonote_protocol_handler.inl
parentMerge pull request #5876 (diff)
downloadmonero-ea92a32f725c3f8c82bda6002bff3c7f9ae3e65b.tar.xz
Revert "Fix check for disconnecting peers when syncing"
This reverts commit adc16d2504d3e76b0115791caf10446684d45433.
Diffstat (limited to 'src/cryptonote_protocol/cryptonote_protocol_handler.inl')
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl2
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;