Skip to content

Commit 0a39b8c

Browse files
committed
validation: remove unused mempool param in DetectSnapshotChainstate
1 parent 1472df6 commit 0a39b8c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/node/chainstate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ ChainstateLoadResult LoadChainstate(ChainstateManager& chainman, const CacheSize
185185
chainman.InitializeChainstate(options.mempool);
186186

187187
// Load a chain created from a UTXO snapshot, if any exist.
188-
bool has_snapshot = chainman.DetectSnapshotChainstate(options.mempool);
188+
bool has_snapshot = chainman.DetectSnapshotChainstate();
189189

190190
if (has_snapshot && (options.reindex || options.reindex_chainstate)) {
191191
LogPrintf("[snapshot] deleting snapshot chainstate due to reindexing\n");

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5768,7 +5768,7 @@ ChainstateManager::~ChainstateManager()
57685768
m_versionbitscache.Clear();
57695769
}
57705770

5771-
bool ChainstateManager::DetectSnapshotChainstate(CTxMemPool* mempool)
5771+
bool ChainstateManager::DetectSnapshotChainstate()
57725772
{
57735773
assert(!m_snapshot_chainstate);
57745774
std::optional<fs::path> path = node::FindSnapshotChainstateDir(m_options.datadir);

src/validation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ class ChainstateManager
12031203

12041204
//! When starting up, search the datadir for a chainstate based on a UTXO
12051205
//! snapshot that is in the process of being validated.
1206-
bool DetectSnapshotChainstate(CTxMemPool* mempool) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
1206+
bool DetectSnapshotChainstate() EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
12071207

12081208
void ResetChainstates() EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
12091209

0 commit comments

Comments
 (0)