Skip to content

Commit 8c82481

Browse files
committed
validation: Use *this in CChainState::LoadMempool
1 parent 0a9a24d commit 8c82481

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/validation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4185,7 +4185,8 @@ bool static LoadBlockIndexDB(ChainstateManager& chainman, const CChainParams& ch
41854185
void CChainState::LoadMempool(const ArgsManager& args)
41864186
{
41874187
if (args.GetArg("-persistmempool", DEFAULT_PERSIST_MEMPOOL)) {
4188-
::LoadMempool(m_mempool, ::ChainstateActive());
4188+
assert(std::addressof(::ChainstateActive()) == std::addressof(*this));
4189+
::LoadMempool(m_mempool, *this);
41894190
}
41904191
m_mempool.SetIsLoaded(!ShutdownRequested());
41914192
}

0 commit comments

Comments
 (0)