Merge ecab855838 into merged_master (Bitcoin PR bitcoin/bitcoin#28195)

This commit is contained in:
Byron Hambly 2025-07-07 09:03:52 +02:00
commit bef3aeb383
15 changed files with 252 additions and 265 deletions

View file

@ -1697,11 +1697,6 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
// ********************************************************* Step 8: start indexers
if (args.GetBoolArg("-txindex", DEFAULT_TXINDEX)) {
auto result{WITH_LOCK(cs_main, return CheckLegacyTxindex(*Assert(chainman.m_blockman.m_block_tree_db)))};
if (!result) {
return InitError(util::ErrorString(result));
}
g_txindex = std::make_unique<TxIndex>(interfaces::MakeChain(node), cache_sizes.tx_index, false, fReindex);
node.indexes.emplace_back(g_txindex.get());
}