mirror of
https://github.com/monero-project/monero.git
synced 2024-12-14 12:26:31 +02: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);
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user