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 Feb 1, 2021
1 parent dfe0491 commit 8d435f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/validation.cpp
Expand Up @@ -4174,7 +4174,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 8d435f2

Please sign in to comment.