aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/cryptonote_core.cpp
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_core/cryptonote_core.cpp
parent9e6bcbc0144c97c1acb11e7f3ee8d66691289d32 (diff)
downloadmonzero-core-827afcb7ea10eb2bf03ffb7ad2520f29cd53019f.tar.gz
monzero-core-827afcb7ea10eb2bf03ffb7ad2520f29cd53019f.tar.xz
monzero-core-827afcb7ea10eb2bf03ffb7ad2520f29cd53019f.zip
protocol: pass blockchain cumulative difficulty when syncing
Not used yet.
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index 62c536ab8..d5acf2ffa 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -1103,6 +1103,11 @@ namespace cryptonote
return m_blockchain_storage.get_tail_id();
}
//-----------------------------------------------------------------------------------------------
+ difficulty_type core::get_block_cumulative_difficulty(uint64_t height) const
+ {
+ return m_blockchain_storage.get_db().get_block_cumulative_difficulty(height);
+ }
+ //-----------------------------------------------------------------------------------------------
size_t core::get_pool_transactions_count() const
{
return m_mempool.get_transactions_count();