aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-11-02 21:09:24 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2016-11-02 21:09:27 +0100
commitc05db8348838422ec6bbfeef30faee36562af13d (patch)
treefc6898fa79622feb759c78209ea9f591f7244ae3 /src/main.cpp
parentbc785d71855fbc8bfeb74189a049a7bb29127bb3 (diff)
parentd0b01f3a859eacc51a28fc18d2ed7e361ec90833 (diff)
downloadbitcoin-c05db8348838422ec6bbfeef30faee36562af13d.tar.xz
Merge #9013: Trivial: Explicitly pass const CChainParams& to LoadBlockIndexDB()
d0b01f3 Explicitly pass const CChainParams& to LoadBlockIndexDB() (Geoffrey Tsui)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 11abc0d175..4cc886afb5 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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;
}