| 131 | } |
| 132 | |
| 133 | script_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 |
no test coverage detected