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

@@ -1606,8 +1606,7 @@ bool AppInitMain()
// ********************************************************* Step 8: start indexers
if (gArgs.GetBoolArg("-txindex", DEFAULT_TXINDEX)) {
auto txindex_db = MakeUnique<TxIndexDB>(nTxIndexCache, false, fReindex);
g_txindex = MakeUnique<TxIndex>(std::move(txindex_db));
g_txindex = MakeUnique<TxIndex>(nTxIndexCache, false, fReindex);
g_txindex->Start();
}