diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2014-11-24 14:51:10 +0100 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2014-12-11 17:39:09 +0100 |
commit | 9dcd524f3248cb4fca5613a3c11dddcc7a0efbd7 (patch) | |
tree | 4a1cc77279d96c8b11e59367758c8aac99fb27c5 /src/chain.h | |
parent | 3bb29a3e13f78f534d96b71048a128843f3bab85 (diff) |
Make IsSuperMajority a standalone function
Diffstat (limited to 'src/chain.h')
-rw-r--r-- | src/chain.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/chain.h b/src/chain.h index 1c2d89933b..a8a6b4dd64 100644 --- a/src/chain.h +++ b/src/chain.h @@ -236,14 +236,6 @@ public: return pbegin[(pend - pbegin)/2]; } - /** - * Returns true if there are nRequired or more blocks of minVersion or above - * in the last Params().ToCheckBlockUpgradeMajority() blocks, starting at pstart - * and going backwards. - */ - static bool IsSuperMajority(int minVersion, const CBlockIndex* pstart, - unsigned int nRequired); - std::string ToString() const { return strprintf("CBlockIndex(pprev=%p, nHeight=%d, merkle=%s, hashBlock=%s)", |