| 6353 | } |
| 6354 | |
| 6355 | uint32_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. |
no test coverage detected