MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / Condition

Method Condition

src/main.cpp:2272–2277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

ComputeBlockVersionFunction · 0.85

Tested by

no test coverage detected