| 93 | } |
| 94 | |
| 95 | int Find(opcodetype op) const |
| 96 | { |
| 97 | int nFound = 0; |
| 98 | opcodetype opcode = OP_0; |
| 99 | for (iterator pc = begin(); pc != end() && GetOp(pc, opcode);) |
| 100 | if (opcode == op) |
| 101 | ++nFound; |
| 102 | return nFound; |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Pre-version-0.6, Bitcoin always counted CHECKMULTISIGs |