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

Function IsWitnessEnabled

src/validation.cpp:3370–3374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3368}
3369
3370bool IsWitnessEnabled(const CBlockIndex* pindexPrev, const Consensus::Params& params)
3371{
3372 LOCK(cs_main);
3373 return (VersionBitsState(pindexPrev, params, Consensus::DEPLOYMENT_SEGWIT, versionbitscache) == ThresholdState::ACTIVE);
3374}
3375
3376bool IsNullDummyEnabled(const CBlockIndex* pindexPrev, const Consensus::Params& params)
3377{

Callers 9

CreateNewBlockMethod · 0.85
EXCLUSIVE_LOCKS_REQUIREDFunction · 0.85
NewPoWValidBlockMethod · 0.85
ProcessHeadersMessageFunction · 0.85
ProcessMessageFunction · 0.85
RewindBlockIndexMethod · 0.85
AssembleBlockFunction · 0.85

Calls 1

VersionBitsStateFunction · 0.85

Tested by

no test coverage detected