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

Function FillFlags

src/test/transaction_tests.cpp:164–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164unsigned int FillFlags(unsigned int flags)
165{
166 // CLEANSTACK implies WITNESS
167 if (flags & SCRIPT_VERIFY_CLEANSTACK) flags |= SCRIPT_VERIFY_WITNESS;
168
169 // WITNESS implies P2SH (and transitively CLEANSTACK implies P2SH)
170 if (flags & SCRIPT_VERIFY_WITNESS) flags |= SCRIPT_VERIFY_P2SH;
171 Assert(IsValidFlagCombination(flags));
172 return flags;
173}
174
175// Exclude each possible script verify flag from flags. Returns a set of these flag combinations
176// that are valid and without duplicates. For example: if flags=1111 and the 4 possible flags are

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 1

IsValidFlagCombinationFunction · 0.85

Tested by

no test coverage detected