diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2023-10-03 00:18:53 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2023-10-06 18:11:24 +0200 |
commit | 0a39b8cbd88e9a496823b36feed77d137ccd894c (patch) | |
tree | 7da58ac7faf30d8cf5139f9e446f09d25e769ed7 /src | |
parent | 1472df63f7a1a331440ca2bb37609a1393657da2 (diff) |
validation: remove unused mempool param in DetectSnapshotChainstate
Diffstat (limited to 'src')
-rw-r--r-- | src/node/chainstate.cpp | 2 | ||||
-rw-r--r-- | src/validation.cpp | 2 | ||||
-rw-r--r-- | src/validation.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/node/chainstate.cpp b/src/node/chainstate.cpp index 16ca1d9156..eb1994177a 100644 --- a/src/node/chainstate.cpp +++ b/src/node/chainstate.cpp @@ -185,7 +185,7 @@ ChainstateLoadResult LoadChainstate(ChainstateManager& chainman, const CacheSize chainman.InitializeChainstate(options.mempool); // 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)) { LogPrintf("[snapshot] deleting snapshot chainstate due to reindexing\n"); diff --git a/src/validation.cpp b/src/validation.cpp index e24c187591..27e1a9785b 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -5768,7 +5768,7 @@ ChainstateManager::~ChainstateManager() m_versionbitscache.Clear(); } -bool ChainstateManager::DetectSnapshotChainstate(CTxMemPool* mempool) +bool ChainstateManager::DetectSnapshotChainstate() { assert(!m_snapshot_chainstate); std::optional<fs::path> path = node::FindSnapshotChainstateDir(m_options.datadir); diff --git a/src/validation.h b/src/validation.h index 94a00e44a4..33d97f0b20 100644 --- a/src/validation.h +++ b/src/validation.h @@ -1203,7 +1203,7 @@ public: //! When starting up, search the datadir for a chainstate based on a UTXO //! 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); |