MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / FillFlags

Function FillFlags

src/test/transaction_tests.cpp:133–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133script_verify_flags FillFlags(script_verify_flags flags)
134{
135 // CLEANSTACK implies WITNESS
136 if (flags & SCRIPT_VERIFY_CLEANSTACK) flags |= SCRIPT_VERIFY_WITNESS;
137
138 // WITNESS implies P2SH (and transitively CLEANSTACK implies P2SH)
139 if (flags & SCRIPT_VERIFY_WITNESS) flags |= SCRIPT_VERIFY_P2SH;
140 Assert(IsValidFlagCombination(flags));
141 return flags;
142}
143
144// Exclude each possible script verify flag from flags. Returns a set of these flag combinations
145// 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