Remove Chainstate::LoadMempool

The 3-line function is only called once outside of tests, so it is
clearer to inline it.
This commit is contained in:
MarcoFalke
2023-08-07 10:59:50 +02:00
parent b7138252ac
commit 6888886cec
4 changed files with 8 additions and 13 deletions

View File

@@ -69,7 +69,6 @@
using kernel::CCoinsStats;
using kernel::CoinStatsHashType;
using kernel::ComputeUTXOStats;
using kernel::LoadMempool;
using kernel::Notifications;
using fsbridge::FopenFn;
@@ -4126,13 +4125,6 @@ void PruneBlockFilesManual(Chainstate& active_chainstate, int nManualPruneHeight
}
}
void Chainstate::LoadMempool(const fs::path& load_path, FopenFn mockable_fopen_function)
{
if (!m_mempool) return;
::LoadMempool(*m_mempool, load_path, *this, mockable_fopen_function);
m_mempool->SetLoadTried(!m_chainman.m_interrupt);
}
bool Chainstate::LoadChainTip()
{
AssertLockHeld(cs_main);