mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-30 05:52:33 +02:00
validation: remove unused mempool param in DetectSnapshotChainstate
This commit is contained in:
parent
1472df63f7
commit
0a39b8cbd8
@ -185,7 +185,7 @@ ChainstateLoadResult LoadChainstate(ChainstateManager& chainman, const CacheSize
|
|||||||
chainman.InitializeChainstate(options.mempool);
|
chainman.InitializeChainstate(options.mempool);
|
||||||
|
|
||||||
// Load a chain created from a UTXO snapshot, if any exist.
|
// Load a chain created from a UTXO snapshot, if any exist.
|
||||||
bool has_snapshot = chainman.DetectSnapshotChainstate(options.mempool);
|
bool has_snapshot = chainman.DetectSnapshotChainstate();
|
||||||
|
|
||||||
if (has_snapshot && (options.reindex || options.reindex_chainstate)) {
|
if (has_snapshot && (options.reindex || options.reindex_chainstate)) {
|
||||||
LogPrintf("[snapshot] deleting snapshot chainstate due to reindexing\n");
|
LogPrintf("[snapshot] deleting snapshot chainstate due to reindexing\n");
|
||||||
|
@ -5768,7 +5768,7 @@ ChainstateManager::~ChainstateManager()
|
|||||||
m_versionbitscache.Clear();
|
m_versionbitscache.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ChainstateManager::DetectSnapshotChainstate(CTxMemPool* mempool)
|
bool ChainstateManager::DetectSnapshotChainstate()
|
||||||
{
|
{
|
||||||
assert(!m_snapshot_chainstate);
|
assert(!m_snapshot_chainstate);
|
||||||
std::optional<fs::path> path = node::FindSnapshotChainstateDir(m_options.datadir);
|
std::optional<fs::path> path = node::FindSnapshotChainstateDir(m_options.datadir);
|
||||||
|
@ -1203,7 +1203,7 @@ public:
|
|||||||
|
|
||||||
//! When starting up, search the datadir for a chainstate based on a UTXO
|
//! When starting up, search the datadir for a chainstate based on a UTXO
|
||||||
//! snapshot that is in the process of being validated.
|
//! snapshot that is in the process of being validated.
|
||||||
bool DetectSnapshotChainstate(CTxMemPool* mempool) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
|
bool DetectSnapshotChainstate() EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
|
||||||
|
|
||||||
void ResetChainstates() EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
|
void ResetChainstates() EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user