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

Method Condition

src/validation.cpp:1767–1772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1765 int Threshold(const Consensus::Params& params) const override { return params.nRuleChangeActivationThreshold; }
1766
1767 bool Condition(const CBlockIndex* pindex, const Consensus::Params& params) const override
1768 {
1769 return ((pindex->nVersion & VERSIONBITS_TOP_MASK) == VERSIONBITS_TOP_BITS) &&
1770 ((pindex->nVersion >> bit) & 1) != 0 &&
1771 ((ComputeBlockVersion(pindex->pprev, params) >> bit) & 1) == 0;
1772 }
1773};
1774
1775// Protected by cs_main

Callers

nothing calls this directly

Calls 1

ComputeBlockVersionFunction · 0.85

Tested by

no test coverage detected