mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
kernel: pass params to BlockManager rather than using a global
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user