Test for "small positive integer" script opcodes - OP_1 through OP_16. */
| 57 | |
| 58 | /** Test for "small positive integer" script opcodes - OP_1 through OP_16. */ |
| 59 | static constexpr bool IsSmallInteger(opcodetype opcode) |
| 60 | { |
| 61 | return opcode >= OP_1 && opcode <= OP_16; |
| 62 | } |
| 63 | |
| 64 | /** Retrieve a minimally-encoded number in range [min,max] from an (opcode, data) pair, |
| 65 | * whether it's OP_n or through a push. */ |