From 8c824819c85005ee6c783e9f8fa43ff91716e33d Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Thu, 17 Sep 2020 14:26:57 -0400 Subject: [PATCH] validation: Use *this in CChainState::LoadMempool --- src/validation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/validation.cpp b/src/validation.cpp index 6591566f0a..751a95611a 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4185,7 +4185,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()); }