cryptonote_protocol: update target height when receiving blocks

pull/95/head
moneromooo-monero 6 years ago
parent 4b156c003b
commit f06603a439
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -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());

Loading…
Cancel
Save