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

Function IsWitnessEnabled

src/main.cpp:4769–4773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4767}
4768
4769bool IsWitnessEnabled(const CBlockIndex* pindexPrev, const Consensus::Params& params)
4770{
4771 //LOCK(cs_main);
4772 return (VersionBitsState(pindexPrev, params, Consensus::DEPLOYMENT_SEGWIT, versionbitscache) == THRESHOLD_ACTIVE);
4773}
4774
4775bool AcceptBlockHeader(const CBlock& block, CValidationState& state, const CChainParams& chainparams, CBlockIndex** ppindex)
4776{

Callers 9

CreateNewBlockMethod · 0.85
getmininginfoFunction · 0.85
AcceptToMemoryPoolFunction · 0.85
ConnectBlockFunction · 0.85
GetFetchFlagsFunction · 0.85
SendMessagesFunction · 0.85

Calls 1

VersionBitsStateFunction · 0.85

Tested by

no test coverage detected