Blockchain: add get_db() accessor, needed for blockchain_import

This handling may be changed in the future.
This commit is contained in:
warptangent 2015-02-10 16:44:32 -08:00
parent a3dd9d10f3
commit ca75b4789c
No known key found for this signature in database
GPG Key ID: 0E490BEBFBE4E92D
1 changed files with 5 additions and 0 deletions

View File

@ -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;