aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.h
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2015-02-10 16:44:32 -0800
committerwarptangent <warptangent@inbox.com>2015-03-15 13:22:52 -0700
commitca75b4789cf6ff379a3d8191e8a8a03cc669de31 (patch)
tree4258625de2e365fd572fe77a99120f5a389a8153 /src/cryptonote_core/blockchain.h
parentblockchain_converter: Add support for batch transactions (diff)
downloadmonero-ca75b4789cf6ff379a3d8191e8a8a03cc669de31.tar.xz
Blockchain: add get_db() accessor, needed for blockchain_import
This handling may be changed in the future.
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r--src/cryptonote_core/blockchain.h5
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;