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
+10
View File
@@ -826,6 +826,16 @@ namespace cryptonote
*/
bool for_all_outputs(std::function<bool(uint64_t amount, const crypto::hash &tx_hash, size_t tx_idx)>) const;
/**
* @brief get a reference to the BlockchainDB in use by Blockchain
*
* @return a reference to the BlockchainDB instance
*/
const BlockchainDB& get_db() const
{
return *m_db;
}
/**
* @brief get a reference to the BlockchainDB in use by Blockchain
*