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.
1 parent e6b4aa6 commit 91226ebCopy full SHA for 91226eb
src/bench/duplicate_inputs.cpp
@@ -25,7 +25,8 @@ static void DuplicateInputs(benchmark::Bench& bench)
25
CMutableTransaction naughtyTx{};
26
27
LOCK(cs_main);
28
- CBlockIndex* pindexPrev = ::ChainActive().Tip();
+ assert(std::addressof(::ChainActive()) == std::addressof(testing_setup->m_node.chainman->ActiveChain()));
29
+ CBlockIndex* pindexPrev = testing_setup->m_node.chainman->ActiveChain().Tip();
30
assert(pindexPrev != nullptr);
31
block.nBits = GetNextWorkRequired(pindexPrev, &block, chainparams.GetConsensus());
32
block.nNonce = 0;
0 commit comments