aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h
index e88b83d46c..cbc48e05c0 100644
--- a/src/main.h
+++ b/src/main.h
@@ -820,7 +820,7 @@ class CBlock
{
public:
// header
- static const int CURRENT_VERSION=1;
+ static const int CURRENT_VERSION=2;
int nVersion;
uint256 hashPrevBlock;
uint256 hashMerkleRoot;
@@ -1164,6 +1164,12 @@ public:
return pindex->GetMedianTimePast();
}
+ /**
+ * Returns true if there are nRequired or more blocks of minVersion or above
+ * in the last nToCheck blocks, starting at pstart and going backwards.
+ */
+ static bool IsSuperMajority(int minVersion, const CBlockIndex* pstart,
+ unsigned int nRequired, unsigned int nToCheck);
std::string ToString() const