MCPcopy Create free account
hub / github.com/LUX-Core/lux / Condition

Method Condition

src/main.cpp:2660–2665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2658 int Threshold(const Consensus::Params& params) const { return params.nRuleChangeActivationThreshold; }
2659
2660 bool Condition(const CBlockIndex* pindex, const Consensus::Params& params) const
2661 {
2662 return ((pindex->nVersion & VERSIONBITS_TOP_MASK) == VERSIONBITS_TOP_BITS) &&
2663 ((pindex->nVersion >> bit) & 1) != 0 &&
2664 ((ComputeBlockVersion(pindex->pprev, params) >> bit) & 1) == 0;
2665 }
2666};
2667
2668ThresholdState VersionBitsTipState(const Consensus::Params& params, Consensus::DeploymentPos pos)

Callers

nothing calls this directly

Calls 1

ComputeBlockVersionFunction · 0.85

Tested by

no test coverage detected