mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
test: Avoid resetting mocktime in testing setup
This allows to set the mocktime before the testing setup. Also, in some fuzz tests the mocktime was reset to 0 before this change, so set it.
This commit is contained in:
@@ -44,6 +44,7 @@ void initialize_process_message()
|
||||
/*chain_type=*/ChainType::REGTEST,
|
||||
{.extra_args = {"-txreconciliation"}});
|
||||
g_setup = testing_setup.get();
|
||||
SetMockTime(WITH_LOCK(g_setup->m_node.chainman->GetMutex(), return g_setup->m_node.chainman->ActiveTip()->Time()));
|
||||
for (int i = 0; i < 2 * COINBASE_MATURITY; i++) {
|
||||
MineBlock(g_setup->m_node, {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user