diff --git a/src/init.cpp b/src/init.cpp index cb8ad9cfe..bfbb86e98 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -2127,9 +2127,12 @@ bool AppInitMain(const util::Ref& context, NodeContext& node, interfaces::BlockA fFeeEstimatesInitialized = true; // ********************************************************* Step 8: start indexers - // TODO (brangr): maybe not needed? - g_txindex = MakeUnique(nTxIndexCache, false, fReindex); - g_txindex->Start(); + // TODO (brangr): 0.21.0 check need txindex test + if (args.GetBoolArg("-txindex", DEFAULT_TXINDEX)) + { + g_txindex = MakeUnique(nTxIndexCache, false, fReindex); + g_txindex->Start(); + } for (const auto& filter_type : g_enabled_filter_types) { InitBlockFilterIndex(filter_type, filter_index_cache, false, fReindex);