Merge pull request #3015

f06603a4 cryptonote_protocol: update target height when receiving blocks (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-01-25 16:39:16 -08:00
commit 75cbb7719e
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 2 additions and 0 deletions

View File

@ -876,6 +876,8 @@ namespace cryptonote
}
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;
block_hashes.reserve(arg.blocks.size());