protocol: pass blockchain cumulative difficulty when syncing

Not used yet.
This commit is contained in:
moneromooo-monero
2017-08-15 21:03:37 +01:00
parent 9e6bcbc014
commit 827afcb7ea
8 changed files with 30 additions and 0 deletions
@@ -309,6 +309,7 @@ namespace cryptonote
{
m_core.get_blockchain_top(hshd.current_height, hshd.top_id);
hshd.top_version = m_core.get_hard_fork_version(hshd.current_height);
hshd.cumulative_difficulty = m_core.get_block_cumulative_difficulty(hshd.current_height);
hshd.current_height +=1;
return true;
}