Skip to content

Commit

Permalink
Blockchain: add get_db() accessor, needed for blockchain_import
Browse files Browse the repository at this point in the history
This handling may be changed in the future.
  • Loading branch information
warptangent committed Mar 15, 2015
1 parent a3dd9d1 commit ca75b47
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cryptonote_core/blockchain.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ca75b47

Please sign in to comment.