| 162 | } |
| 163 | |
| 164 | unsigned 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 |
no test coverage detected