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.h | |
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.h')
-rw-r--r-- | src/cryptonote_core/blockchain.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h index 7137f50a7..7fa78584b 100644 --- a/src/cryptonote_core/blockchain.h +++ b/src/cryptonote_core/blockchain.h @@ -831,6 +831,16 @@ namespace cryptonote * * @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 + * + * @return a reference to the BlockchainDB instance + */ BlockchainDB& get_db() { return *m_db; |