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

Function GetFetchFlags

src/main.cpp:6355–6361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6353}
6354
6355uint32_t GetFetchFlags(CNode* pfrom, CBlockIndex* pprev, const Consensus::Params& chainparams) {
6356 uint32_t nFetchFlags = 0;
6357 if (IsWitnessEnabled(pprev, chainparams) && State(pfrom->GetId())->fHaveWitness) {
6358 nFetchFlags |= MSG_WITNESS_FLAG;
6359 }
6360 return nFetchFlags;
6361}
6362
6363/**
6364 * Parses major version from version string.

Callers 1

SendMessagesFunction · 0.85

Calls 3

IsWitnessEnabledFunction · 0.85
GetIdMethod · 0.80
StateFunction · 0.70

Tested by

no test coverage detected