diff options
| author | Pieter Wuille <[email protected]> | 2014-11-24 14:51:10 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-12-11 17:39:09 +0100 |
| commit | 9dcd524f3248cb4fca5613a3c11dddcc7a0efbd7 (patch) | |
| tree | 4a1cc77279d96c8b11e59367758c8aac99fb27c5 /src/chain.h | |
| parent | Merge pull request #5440 (diff) | |
| download | discoin-9dcd524f3248cb4fca5613a3c11dddcc7a0efbd7.tar.xz discoin-9dcd524f3248cb4fca5613a3c11dddcc7a0efbd7.zip | |
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 1c2d89933..a8a6b4dd6 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)", |