index: Remove TxIndexDB from public interface of TxIndex.

This commit is contained in:
Jim Posen
2018-05-15 17:26:49 -07:00
parent 2318affd27
commit 89eddcd365
4 changed files with 6 additions and 5 deletions

View File

@@ -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()
{

View File

@@ -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.
///