| 2270 | int Threshold(const Consensus::Params& params) const { return params.nRuleChangeActivationThreshold; } |
| 2271 | |
| 2272 | bool Condition(const CBlockIndex* pindex, const Consensus::Params& params) const |
| 2273 | { |
| 2274 | return ((pindex->nVersion & VERSIONBITS_TOP_MASK) == VERSIONBITS_TOP_BITS) && |
| 2275 | ((pindex->nVersion >> bit) & 1) != 0 && |
| 2276 | ((ComputeBlockVersion(pindex->pprev, params) >> bit) & 1) == 0; |
| 2277 | } |
| 2278 | }; |
| 2279 | |
| 2280 | // Protected by cs_main |
nothing calls this directly
no test coverage detected