| 1765 | int Threshold(const Consensus::Params& params) const override { return params.nRuleChangeActivationThreshold; } |
| 1766 | |
| 1767 | bool Condition(const CBlockIndex* pindex, const Consensus::Params& params) const override |
| 1768 | { |
| 1769 | return ((pindex->nVersion & VERSIONBITS_TOP_MASK) == VERSIONBITS_TOP_BITS) && |
| 1770 | ((pindex->nVersion >> bit) & 1) != 0 && |
| 1771 | ((ComputeBlockVersion(pindex->pprev, params) >> bit) & 1) == 0; |
| 1772 | } |
| 1773 | }; |
| 1774 | |
| 1775 | // Protected by cs_main |
nothing calls this directly
no test coverage detected