aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/cryptonote_protocol_handler.inl
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-12 15:24:39 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-15 21:03:37 +0100
commit827afcb7ea10eb2bf03ffb7ad2520f29cd53019f (patch)
treeb0736c05f24b7481b336e79ba7b9d7095d33c21d /src/cryptonote_protocol/cryptonote_protocol_handler.inl
parentMerge pull request #2286 (diff)
downloadmonero-827afcb7ea10eb2bf03ffb7ad2520f29cd53019f.tar.xz
protocol: pass blockchain cumulative difficulty when syncing
Not used yet.
Diffstat (limited to '')
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
index 5b3b059a4..265e60b3f 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -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;
}