mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
cryptonote_protocol: update target height when receiving blocks
This commit is contained in:
parent
4b156c003b
commit
f06603a439
1 changed files with 2 additions and 0 deletions
|
@ -876,6 +876,8 @@ namespace cryptonote
|
||||||
}
|
}
|
||||||
|
|
||||||
context.m_remote_blockchain_height = arg.current_blockchain_height;
|
context.m_remote_blockchain_height = arg.current_blockchain_height;
|
||||||
|
if (context.m_remote_blockchain_height > m_core.get_target_blockchain_height())
|
||||||
|
m_core.set_target_blockchain_height(context.m_remote_blockchain_height);
|
||||||
|
|
||||||
std::vector<crypto::hash> block_hashes;
|
std::vector<crypto::hash> block_hashes;
|
||||||
block_hashes.reserve(arg.blocks.size());
|
block_hashes.reserve(arg.blocks.size());
|
||||||
|
|
Loading…
Reference in a new issue