mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
Merge pull request #5815
adc16d2
Fix check for disconnecting peers when syncing (jagerman)
This commit is contained in:
commit
7bdff6005f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user