Skip to content

Commit

Permalink
Fix check for disconnecting peers when syncing
Browse files Browse the repository at this point in the history
Monero #5816 PR
  • Loading branch information
hayzamjs committed Aug 17, 2019
1 parent c902264 commit a455713
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryptonote_protocol/cryptonote_protocol_handler.inl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Binary file modified src/device_trezor/trezor/tools/py2backports/__init__.pyc
Binary file not shown.
Binary file modified src/device_trezor/trezor/tools/py2backports/tempfile.pyc
Binary file not shown.
Binary file modified src/device_trezor/trezor/tools/py2backports/weakref.pyc
Binary file not shown.

0 comments on commit a455713

Please sign in to comment.