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

View file

@ -145,6 +145,11 @@ namespace cryptonote
void set_enforce_dns_checkpoints(bool enforce); void set_enforce_dns_checkpoints(bool enforce);
bool update_checkpoints(const std::string& file_path, bool check_dns); bool update_checkpoints(const std::string& file_path, bool check_dns);
BlockchainDB* get_db()
{
return m_db;
}
private: private:
typedef std::unordered_map<crypto::hash, size_t> blocks_by_id_index; typedef std::unordered_map<crypto::hash, size_t> blocks_by_id_index;
typedef std::unordered_map<crypto::hash, transaction_chain_entry> transactions_container; typedef std::unordered_map<crypto::hash, transaction_chain_entry> transactions_container;