MCPcopy Create free account
hub / github.com/ElementsProject/elements / Condition

Method Condition

src/validation.cpp:1990–1996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
1999static ThresholdConditionCache warningcache[VERSIONBITS_NUM_BITS] GUARDED_BY(cs_main);

Callers

nothing calls this directly

Calls 1

ComputeBlockVersionMethod · 0.80

Tested by

no test coverage detected