mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 21:58:52 +00:00
Blockchain: add get_db() accessor, needed for blockchain_import
This handling may be changed in the future.
This commit is contained in:
parent
a3dd9d10f3
commit
ca75b4789c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user