diff options
| author | Geoffrey Tsui <[email protected]> | 2016-10-25 22:35:26 +0800 |
|---|---|---|
| committer | Geoffrey Tsui <[email protected]> | 2016-10-25 22:35:26 +0800 |
| commit | d0b01f3a859eacc51a28fc18d2ed7e361ec90833 (patch) | |
| tree | 52f988b2d7f53d2624a40ba76839bfe031635908 /src/main.cpp | |
| parent | Merge #8515: A few mempool removal optimizations (diff) | |
| download | discoin-d0b01f3a859eacc51a28fc18d2ed7e361ec90833.tar.xz discoin-d0b01f3a859eacc51a28fc18d2ed7e361ec90833.zip | |
Explicitly pass const CChainParams& to LoadBlockIndexDB()
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index 5e17ec625..0ee54a27d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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() 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; } |