aboutsummaryrefslogtreecommitdiff
path: root/src/index/txindex.cpp
diff options
context:
space:
mode:
authorJim Posen <jim.posen@gmail.com>2018-05-15 17:26:49 -0700
committerJim Posen <jim.posen@gmail.com>2018-06-04 19:22:28 -0700
commit89eddcd365e9a2218648f5cc5b9f22b28023f50a (patch)
tree6aeaaec4323b1a6c846fc79e539bba4579f4d203 /src/index/txindex.cpp
parent2318affd27de436ddf9d866a4b82eed8ea2e738b (diff)
index: Remove TxIndexDB from public interface of TxIndex.
Diffstat (limited to 'src/index/txindex.cpp')
-rw-r--r--src/index/txindex.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/index/txindex.cpp b/src/index/txindex.cpp
index 7d3d2fed52..328039977f 100644
--- a/src/index/txindex.cpp
+++ b/src/index/txindex.cpp
@@ -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()
{