kernel: pass params to BlockManager rather than using a global

This commit is contained in:
Cory Fields
2022-06-01 19:10:10 +00:00
parent 1c7ef0abd1
commit a4741bd8d4
3 changed files with 4 additions and 4 deletions

View File

@@ -318,9 +318,9 @@ bool BlockManager::WriteBlockIndexDB()
return true;
}
bool BlockManager::LoadBlockIndexDB()
bool BlockManager::LoadBlockIndexDB(const Consensus::Params& consensus_params)
{
if (!LoadBlockIndex(::Params().GetConsensus())) {
if (!LoadBlockIndex(consensus_params)) {
return false;
}