diff options
author | Thomas Winget <tewinget@gmail.com> | 2015-03-17 19:07:09 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2015-03-17 19:07:09 -0400 |
commit | 38c54b79fdf9af7446ea055180340f7e131cde82 (patch) | |
tree | 2abd2c1e18bbc70146761137058e33ea6bc5bd53 /src/cryptonote_core/blockchain.h | |
parent | Merges #33 (diff) | |
parent | blockchain_export: Add compile-time support for BlockchainDB (diff) | |
download | monero-38c54b79fdf9af7446ea055180340f7e131cde82.tar.xz |
Merges PR #35
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r-- | src/cryptonote_core/blockchain.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h index 477aa4964..da4da075b 100644 --- a/src/cryptonote_core/blockchain.h +++ b/src/cryptonote_core/blockchain.h @@ -81,7 +81,7 @@ namespace cryptonote Blockchain(tx_memory_pool& tx_pool); - bool init(const std::string& config_folder, bool testnet = false); + bool init(const std::string& config_folder, const bool testnet = false, const int db_flags = 0); bool deinit(); void set_checkpoints(checkpoints&& chk_pts) { m_checkpoints = chk_pts; } @@ -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; |