Merge pull request #7053

2e29e7e Globals: Remove a bunch of Params() calls from main.cpp: (Jorge Timón)
This commit is contained in:
Wladimir J. van der Laan
2015-11-27 13:26:57 +01:00
5 changed files with 44 additions and 49 deletions

View File

@@ -567,7 +567,7 @@ UniValue verifychain(const UniValue& params, bool fHelp)
if (params.size() > 1)
nCheckDepth = params[1].get_int();
return CVerifyDB().VerifyDB(pcoinsTip, nCheckLevel, nCheckDepth);
return CVerifyDB().VerifyDB(Params(), pcoinsTip, nCheckLevel, nCheckDepth);
}
/** Implementation of IsSuperMajority with better feedback */
@@ -835,7 +835,7 @@ UniValue invalidateblock(const UniValue& params, bool fHelp)
}
if (state.IsValid()) {
ActivateBestChain(state);
ActivateBestChain(state, Params());
}
if (!state.IsValid()) {
@@ -874,7 +874,7 @@ UniValue reconsiderblock(const UniValue& params, bool fHelp)
}
if (state.IsValid()) {
ActivateBestChain(state);
ActivateBestChain(state, Params());
}
if (!state.IsValid()) {