mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
Merge #9013: Trivial: Explicitly pass const CChainParams& to LoadBlockIndexDB()
d0b01f3 Explicitly pass const CChainParams& to LoadBlockIndexDB() (Geoffrey Tsui)
This commit is contained in:
@@ -3972,9 +3972,8 @@ CBlockIndex * InsertBlockIndex(uint256 hash)
|
||||
return pindexNew;
|
||||
}
|
||||
|
||||
bool static LoadBlockIndexDB()
|
||||
bool static LoadBlockIndexDB(const CChainParams& chainparams)
|
||||
{
|
||||
const CChainParams& chainparams = Params();
|
||||
if (!pblocktree->LoadBlockIndexGuts(InsertBlockIndex))
|
||||
return false;
|
||||
|
||||
@@ -4303,10 +4302,10 @@ void UnloadBlockIndex()
|
||||
fHavePruned = false;
|
||||
}
|
||||
|
||||
bool LoadBlockIndex()
|
||||
bool LoadBlockIndex(const CChainParams& chainparams)
|
||||
{
|
||||
// Load block index from databases
|
||||
if (!fReindex && !LoadBlockIndexDB())
|
||||
if (!fReindex && !LoadBlockIndexDB(chainparams))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user