diff options
author | warptangent <warptangent@inbox.com> | 2015-02-10 16:44:32 -0800 |
---|---|---|
committer | warptangent <warptangent@inbox.com> | 2015-03-15 13:22:52 -0700 |
commit | ca75b4789cf6ff379a3d8191e8a8a03cc669de31 (patch) | |
tree | 4258625de2e365fd572fe77a99120f5a389a8153 | |
parent | blockchain_converter: Add support for batch transactions (diff) | |
download | monero-ca75b4789cf6ff379a3d8191e8a8a03cc669de31.tar.xz |
Blockchain: add get_db() accessor, needed for blockchain_import
This handling may be changed in the future.
-rw-r--r-- | src/cryptonote_core/blockchain.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h index 477aa4964..e86b3887e 100644 --- a/src/cryptonote_core/blockchain.h +++ b/src/cryptonote_core/blockchain.h @@ -145,6 +145,11 @@ namespace cryptonote void set_enforce_dns_checkpoints(bool enforce); bool update_checkpoints(const std::string& file_path, bool check_dns); + BlockchainDB* get_db() + { + return m_db; + } + private: typedef std::unordered_map<crypto::hash, size_t> blocks_by_id_index; typedef std::unordered_map<crypto::hash, transaction_chain_entry> transactions_container; |