diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-12 15:24:39 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-15 21:03:37 +0100 |
commit | 827afcb7ea10eb2bf03ffb7ad2520f29cd53019f (patch) | |
tree | b0736c05f24b7481b336e79ba7b9d7095d33c21d /src/cryptonote_core/blockchain.cpp | |
parent | Merge pull request #2286 (diff) | |
download | monero-827afcb7ea10eb2bf03ffb7ad2520f29cd53019f.tar.xz |
protocol: pass blockchain cumulative difficulty when syncing
Not used yet.
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 61ddff3d0..14a990131 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -2038,6 +2038,7 @@ bool Blockchain::find_blockchain_supplement(const std::list<crypto::hash>& qbloc { resp.m_block_ids.push_back(m_db->get_block_hash_from_height(i)); } + resp.cumulative_difficulty = m_db->get_block_cumulative_difficulty(m_db->height() - 1); m_db->block_txn_stop(); return true; } |