Merge pull request #5816

ca8d4a3 Fix check for disconnecting peers when syncing (jagerman)
This commit is contained in:
luigi1111 2019-09-04 09:34:44 -05:00
commit adc2e3f1dc
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,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;