aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2022-03-07 21:42:27 -0500
committerCarl Dong <contact@carldong.me>2022-03-15 19:42:41 -0400
commitc600ee38168a460d3026eae0e289c976194aad14 (patch)
tree865bc99a7435f69d757296c04a23e4c10a77ec3f /src/validation.h
parent42e56d9b188f97c077ed2269e24acc0be35ece17 (diff)
downloadbitcoin-c600ee38168a460d3026eae0e289c976194aad14.tar.xz
Only load BlockMan in BlockMan member functions
This commit effectively splits the "load block index itself" logic from "derive Chainstate variables from loaded block index" logic. This means that BlockManager::LoadBlockIndex{,DB} will only load what's relevant to the BlockManager. I strongly recommend reviewing with the following git-diff flags: --color-moved=dimmed_zebra --color-moved-ws=allow-indentation-change
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h
index 28887909ad..8833a4813e 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -836,7 +836,7 @@ private:
bool m_snapshot_validated{false};
CBlockIndex* m_best_invalid;
- friend bool node::BlockManager::LoadBlockIndex(const Consensus::Params&, ChainstateManager&);
+ friend bool node::BlockManager::LoadBlockIndex(const Consensus::Params&);
//! Internal helper for ActivateSnapshot().
[[nodiscard]] bool PopulateAndValidateSnapshot(