protocol: pass blockchain cumulative difficulty when syncing

Not used yet.
This commit is contained in:
moneromooo-monero
2017-08-12 15:24:39 +01:00
parent 9e6bcbc014
commit 827afcb7ea
8 changed files with 30 additions and 0 deletions
+5
View File
@@ -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();