Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.cpp
Show First 20 Lines • Show All 1,147 Lines • ▼ Show 20 Lines | UniValue verifychain(const Config &config, const JSONRPCRequest &request) { | ||||
if (request.params.size() > 0) { | if (request.params.size() > 0) { | ||||
nCheckLevel = request.params[0].get_int(); | nCheckLevel = request.params[0].get_int(); | ||||
} | } | ||||
if (request.params.size() > 1) { | if (request.params.size() > 1) { | ||||
nCheckDepth = request.params[1].get_int(); | nCheckDepth = request.params[1].get_int(); | ||||
} | } | ||||
return CVerifyDB().VerifyDB(config, Params(), pcoinsTip, nCheckLevel, | return CVerifyDB().VerifyDB(config, pcoinsTip, nCheckLevel, nCheckDepth); | ||||
nCheckDepth); | |||||
} | } | ||||
/** Implementation of IsSuperMajority with better feedback */ | /** Implementation of IsSuperMajority with better feedback */ | ||||
static UniValue SoftForkMajorityDesc(int version, CBlockIndex *pindex, | static UniValue SoftForkMajorityDesc(int version, CBlockIndex *pindex, | ||||
const Consensus::Params &consensusParams) { | const Consensus::Params &consensusParams) { | ||||
UniValue rv(UniValue::VOBJ); | UniValue rv(UniValue::VOBJ); | ||||
bool activated = false; | bool activated = false; | ||||
switch (version) { | switch (version) { | ||||
▲ Show 20 Lines • Show All 501 Lines • Show Last 20 Lines |