mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #5816
ca8d4a3
Fix check for disconnecting peers when syncing (jagerman)
This commit is contained in:
commit
adc2e3f1dc
@ -341,7 +341,7 @@ namespace cryptonote
|
|||||||
|
|
||||||
if(m_core.have_block(hshd.top_id))
|
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");
|
MINFO(context << "peer is not ahead of us and we're syncing, disconnecting");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user