mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
kernel: pass params to BlockManager rather than using a global
This commit is contained in:
parent
1c7ef0abd1
commit
a4741bd8d4
3 changed files with 4 additions and 4 deletions
|
|
@ -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()};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue