diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2022-06-01 19:10:10 +0000 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2022-06-02 15:18:09 +0000 |
commit | a4741bd8d4b90b451d982d98eabd0dc5572baa29 (patch) | |
tree | 5f92d4bb4d9a8423bd679a2dcd8a62cb012f931a /src/validation.cpp | |
parent | 1c7ef0abd11f35a27cc860ceb7e075b78f53cecf (diff) | |
download | bitcoin-a4741bd8d4b90b451d982d98eabd0dc5572baa29.tar.xz |
kernel: pass params to BlockManager rather than using a global
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 9ad95c1c08..448720ff83 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4158,7 +4158,7 @@ bool ChainstateManager::LoadBlockIndex() // Load block index from databases bool needs_init = fReindex; if (!fReindex) { - bool ret = m_blockman.LoadBlockIndexDB(); + bool ret = m_blockman.LoadBlockIndexDB(GetConsensus()); if (!ret) return false; std::vector<CBlockIndex*> vSortedByHeight{m_blockman.GetAllBlockIndices()}; |