mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-21 20:28:59 +02:00
validation: Pass in chainman to UnloadBlockIndex
This commit is contained in:
@@ -84,8 +84,11 @@ void AppTests::appTests()
|
||||
// Reset global state to avoid interfering with later tests.
|
||||
LogInstance().DisconnectTestLogger();
|
||||
AbortShutdown();
|
||||
UnloadBlockIndex(/* mempool */ nullptr);
|
||||
WITH_LOCK(::cs_main, g_chainman.Reset());
|
||||
{
|
||||
LOCK(cs_main);
|
||||
UnloadBlockIndex(/* mempool */ nullptr, g_chainman);
|
||||
g_chainman.Reset();
|
||||
}
|
||||
}
|
||||
|
||||
//! Entry point for BitcoinGUI tests.
|
||||
|
||||
Reference in New Issue
Block a user