aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-07-01 09:58:06 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-07-15 13:52:41 +0200
commitfa27f03b4943540aa2eab283d4cf50ad4a1a01f8 (patch)
treefa20dcc35b6801c7364eb9a0c81e1112de35a692 /src/validation.h
parentc0224bc96287b04c9ac4d2ae93621c72be5c2baf (diff)
downloadbitcoin-fa27f03b4943540aa2eab283d4cf50ad4a1a01f8.tar.xz
Move LoadBlockIndexDB to BlockManager
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validation.h b/src/validation.h
index 9a2be3ad97..3d2d51f262 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -446,6 +446,8 @@ public:
*/
std::multimap<CBlockIndex*, CBlockIndex*> m_blocks_unlinked;
+ bool LoadBlockIndexDB(std::set<CBlockIndex*, CBlockIndexWorkComparator>& setBlockIndexCandidates) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
+
/**
* Load the blocktree off disk and into memory. Populate certain metadata
* per index entry (nStatus, nChainWork, nTimeMax, etc.) as well as peripheral
@@ -798,8 +800,6 @@ private:
void CheckForkWarningConditions() EXCLUSIVE_LOCKS_REQUIRED(cs_main);
void InvalidChainFound(CBlockIndex* pindexNew) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
- bool LoadBlockIndexDB() EXCLUSIVE_LOCKS_REQUIRED(cs_main);
-
//! Indirection necessary to make lock annotations work with an optional mempool.
RecursiveMutex* MempoolMutex() const LOCK_RETURNED(m_mempool->cs)
{