MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsValidFlagCombination

Function IsValidFlagCombination

src/test/util/script.cpp:8–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <test/util/script.h>
7
8bool IsValidFlagCombination(unsigned flags)
9{
10 if (flags & SCRIPT_VERIFY_CLEANSTACK && ~flags & (SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS)) return false;
11 if (flags & SCRIPT_VERIFY_WITNESS && ~flags & SCRIPT_VERIFY_P2SH) return false;
12 return true;
13}

Callers 4

TrimFlagsFunction · 0.85
FillFlagsFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected