Skip to content

Commit

Permalink
validation: Use *this in CChainState::LoadMempool
Browse files Browse the repository at this point in the history
  • Loading branch information
dongcarl committed Jan 26, 2021
1 parent 4a75259 commit 5803d30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/validation.cpp
Expand Up @@ -4175,7 +4175,8 @@ bool static LoadBlockIndexDB(ChainstateManager& chainman, const CChainParams& ch
void CChainState::LoadMempool(const ArgsManager& args)
{
if (args.GetArg("-persistmempool", DEFAULT_PERSIST_MEMPOOL)) {
::LoadMempool(m_mempool, ::ChainstateActive());
assert(std::addressof(::ChainstateActive()) == std::addressof(*this));
::LoadMempool(m_mempool, *this);
}
m_mempool.SetIsLoaded(!ShutdownRequested());
}
Expand Down

0 comments on commit 5803d30

Please sign in to comment.