Merge pull request #3824
f0a83fcUse Params().NetworkID() instead of TestNet() from the payment protocol (jtimon)2871889net.h was using std namespace through chainparams.h included in protocol.h (jtimon)c8c52deReplace virtual methods with static attributes, chainparams.h depends on protocol.h instead of the other way around (jtimon)a3d946eGet rid of TestNet() (jtimon)6fc0fa6Add RPCisTestNet chain parameter (jtimon)cfeb823Add RequireStandard chain parameter (jtimon)21913a9Add AllowMinDifficultyBlocks chain parameter (jtimon)d754f34Move majority constants to chainparams (jtimon)8d26721Get rid of RegTest() (jtimon)cb9bd83Add DefaultCheckMemPool chain parameter (jtimon)2595b9aAdd DefaultMinerThreads chain parameter (jtimon)bfa9a1aAdd MineBlocksOnDemand chain parameter (jtimon)1712adbAdd MiningRequiresPeers chain parameter (jtimon)
This commit is contained in:
@@ -841,10 +841,11 @@ public:
|
||||
|
||||
/**
|
||||
* Returns true if there are nRequired or more blocks of minVersion or above
|
||||
* in the last nToCheck blocks, starting at pstart and going backwards.
|
||||
* in the last Params().ToCheckBlockUpgradeMajority() blocks, starting at pstart
|
||||
* and going backwards.
|
||||
*/
|
||||
static bool IsSuperMajority(int minVersion, const CBlockIndex* pstart,
|
||||
unsigned int nRequired, unsigned int nToCheck);
|
||||
unsigned int nRequired);
|
||||
|
||||
std::string ToString() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user