mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-03 01:33:20 +02:00
index: Remove TxIndexDB from public interface of TxIndex.
This commit is contained in:
@@ -8,7 +8,9 @@
|
||||
|
||||
std::unique_ptr<TxIndex> g_txindex;
|
||||
|
||||
TxIndex::TxIndex(std::unique_ptr<TxIndexDB> db) : m_db(std::move(db)) {}
|
||||
TxIndex::TxIndex(size_t n_cache_size, bool f_memory, bool f_wipe)
|
||||
: m_db(MakeUnique<TxIndex::DB>(n_cache_size, f_memory, f_wipe))
|
||||
{}
|
||||
|
||||
bool TxIndex::Init()
|
||||
{
|
||||
|
||||
@@ -29,7 +29,7 @@ protected:
|
||||
|
||||
public:
|
||||
/// Constructs the index, which becomes available to be queried.
|
||||
explicit TxIndex(std::unique_ptr<TxIndexDB> db);
|
||||
explicit TxIndex(size_t n_cache_size, bool f_memory = false, bool f_wipe = false);
|
||||
|
||||
/// Look up a transaction by hash.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user