|
|
|
@ -3966,9 +3966,8 @@ CBlockIndex * InsertBlockIndex(uint256 hash)
@@ -3966,9 +3966,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; |
|
|
|
|
|
|
|
|
@ -4297,10 +4296,10 @@ void UnloadBlockIndex()
@@ -4297,10 +4296,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; |
|
|
|
|
} |
|
|
|
|