|
|
@ -4185,7 +4185,8 @@ bool static LoadBlockIndexDB(ChainstateManager& chainman, const CChainParams& ch
|
|
|
|
void CChainState::LoadMempool(const ArgsManager& args)
|
|
|
|
void CChainState::LoadMempool(const ArgsManager& args)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (args.GetArg("-persistmempool", DEFAULT_PERSIST_MEMPOOL)) {
|
|
|
|
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());
|
|
|
|
m_mempool.SetIsLoaded(!ShutdownRequested());
|
|
|
|
}
|
|
|
|
}
|
|
|
|