mirror of
https://github.com/monero-project/monero.git
synced 2026-01-01 23:40:03 -08:00
protocol: pass blockchain cumulative difficulty when syncing
Not used yet.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user