diff options
| author | MarcoFalke <[email protected]> | 2020-05-20 11:34:31 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-05-21 08:13:00 -0400 |
| commit | fa4ea997b4da1ae0afafba223fff9efbeefaf555 (patch) | |
| tree | 9a819c005582d906d5a179c3a3e4eed6f19fbd84 /src/test/util/setup_common.cpp | |
| parent | Merge #18740: Remove g_rpc_node global (diff) | |
| download | discoin-fa4ea997b4da1ae0afafba223fff9efbeefaf555.tar.xz discoin-fa4ea997b4da1ae0afafba223fff9efbeefaf555.zip | |
init: Setup scheduler in tests and init in exactly the same way
Diffstat (limited to 'src/test/util/setup_common.cpp')
| -rw-r--r-- | src/test/util/setup_common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index 86dac55b2..37cdbf2dd 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -129,7 +129,7 @@ TestingSetup::TestingSetup(const std::string& chainName, const std::vector<const // We have to run a scheduler thread to prevent ActivateBestChain // from blocking due to queue overrun. - threadGroup.create_thread([&]{ m_node.scheduler->serviceQueue(); }); + threadGroup.create_thread([&] { TraceThread("scheduler", [&] { m_node.scheduler->serviceQueue(); }); }); GetMainSignals().RegisterBackgroundSignalScheduler(*m_node.scheduler); pblocktree.reset(new CBlockTreeDB(1 << 20, true)); |