mirror of
https://github.com/monero-project/monero.git
synced 2024-12-22 19:49:30 +00:00
cryptonote_protocol: update target height when syncing too
This commit is contained in:
parent
e2ad372b87
commit
cc81a37155
1 changed files with 4 additions and 0 deletions
|
@ -1561,6 +1561,10 @@ skip:
|
|||
drop_connection(context, false, false);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (arg.total_height > m_core.get_target_blockchain_height())
|
||||
m_core.set_target_blockchain_height(arg.total_height);
|
||||
|
||||
return 1;
|
||||
}
|
||||
//------------------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue