mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
validation: Pass in chainman to UnloadBlockIndex
This commit is contained in:
parent
4668ded6d6
commit
74f73c783d
5 changed files with 10 additions and 7 deletions
|
|
@ -4605,10 +4605,10 @@ void CChainState::UnloadBlockIndex() {
|
|||
// May NOT be used after any connections are up as much
|
||||
// of the peer-processing logic assumes a consistent
|
||||
// block index state
|
||||
void UnloadBlockIndex(CTxMemPool* mempool)
|
||||
void UnloadBlockIndex(CTxMemPool* mempool, ChainstateManager& chainman)
|
||||
{
|
||||
LOCK(cs_main);
|
||||
g_chainman.Unload();
|
||||
chainman.Unload();
|
||||
pindexBestInvalid = nullptr;
|
||||
pindexBestHeader = nullptr;
|
||||
if (mempool) mempool->clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue