aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/cryptonote_protocol_handler.inl
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-08-17 21:35:02 +0200
committerRiccardo Spagni <ric@spagni.net>2017-08-17 21:35:02 +0200
commit4b2cc123ff48fdd2c62dbffc24c604c45c6fbf1d (patch)
treebfe654f3fb0b4b5ae5ffdb96919080c716449069 /src/cryptonote_protocol/cryptonote_protocol_handler.inl
parentMerge pull request #2297 (diff)
parentprotocol: pass blockchain cumulative difficulty when syncing (diff)
downloadmonero-4b2cc123ff48fdd2c62dbffc24c604c45c6fbf1d.tar.xz
Merge pull request #2287
827afcb7 protocol: pass blockchain cumulative difficulty when syncing (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_protocol/cryptonote_protocol_handler.inl')
-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;
}