diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-08-21 15:48:09 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-08-21 15:48:09 -0500 |
| commit | 7bdff6005f9367b1e38c4514a272f075f5cae919 (patch) | |
| tree | 7524248c1ebd223db2ad44a158031ece5c3b43e2 /src | |
| parent | d8244eb39c27892dce47eefc94cf857a1e675ee6 (diff) | |
| parent | adc16d2504d3e76b0115791caf10446684d45433 (diff) | |
| download | monzero-core-7bdff6005f9367b1e38c4514a272f075f5cae919.tar.gz monzero-core-7bdff6005f9367b1e38c4514a272f075f5cae919.tar.xz monzero-core-7bdff6005f9367b1e38c4514a272f075f5cae919.zip | |
Merge pull request #5815
adc16d2 Fix check for disconnecting peers when syncing (jagerman)
Diffstat (limited to 'src')
| -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 a1fa9484c..2ff7b5938 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 > hshd.current_height) + if (target > m_core.get_current_blockchain_height()) { MINFO(context << "peer is not ahead of us and we're syncing, disconnecting"); return false; |
