| 1988 | int Threshold(const Consensus::Params& params) const override { return params.nRuleChangeActivationThreshold; } |
| 1989 | |
| 1990 | bool Condition(const CBlockIndex* pindex, const Consensus::Params& params) const override |
| 1991 | { |
| 1992 | return pindex->nHeight >= params.MinBIP9WarningHeight && |
| 1993 | ((pindex->nVersion & VERSIONBITS_TOP_MASK) == VERSIONBITS_TOP_BITS) && |
| 1994 | ((pindex->nVersion >> bit) & 1) != 0 && |
| 1995 | ((g_versionbitscache.ComputeBlockVersion(pindex->pprev, params) >> bit) & 1) == 0; |
| 1996 | } |
| 1997 | }; |
| 1998 | |
| 1999 | static ThresholdConditionCache warningcache[VERSIONBITS_NUM_BITS] GUARDED_BY(cs_main); |
nothing calls this directly
no test coverage detected