We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
g_txindex
1 parent f16025f commit 9316b61Copy full SHA for 9316b61
src/test/util/setup_common.cpp
@@ -361,8 +361,10 @@ void TestChainSetup::mineBlocks(int num_blocks)
361
m_coinbase_txns.push_back(b.vtx[0]);
362
}
363
364
- g_txindex = std::make_unique<TxIndex>(1 << 20, true);
365
- assert(g_txindex->Start(m_node.chainman->ActiveChainstate()));
+ if (!g_txindex) {
+ g_txindex = std::make_unique<TxIndex>(1 << 20, true);
366
+ assert(g_txindex->Start(m_node.chainman->ActiveChainstate()));
367
+ }
368
369
// Allow tx index to catch up with the block index.
370
IndexWaitSynced(*g_txindex);
0 commit comments