Fix (inverse) meaning of -persistmempool

Github-Pull: #23061
Rebased-From: faff17bbde
(cherry picked from commit db76db7329f6357c5226cd08611fe0f669c002af)
This commit is contained in:
MarcoFalke 2021-09-22 11:32:25 +02:00 committed by Pablo Greco
parent 92131fa0e9
commit df09befb2f
3 changed files with 3 additions and 3 deletions

View file

@ -4229,7 +4229,7 @@ bool CChainState::LoadBlockIndexDB()
void CChainState::LoadMempool(const ArgsManager& args)
{
if (!m_mempool) return;
if (args.GetArg("-persistmempool", DEFAULT_PERSIST_MEMPOOL)) {
if (args.GetBoolArg("-persistmempool", DEFAULT_PERSIST_MEMPOOL)) {
::LoadMempool(*m_mempool, *this);
}
m_mempool->SetIsLoaded(!ShutdownRequested());