Move majority constants to chainparams

This commit is contained in:
jtimon
2014-03-22 19:52:26 +01:00
parent 8d26721498
commit d754f34e8d
4 changed files with 34 additions and 22 deletions

View File

@@ -848,10 +848,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
{