* Test the script to see if it contains only push ops. * Push ops are: OP_1NEGATE, OP_0-OP_16 and all PUSHDATAs. * @returns {Boolean}
()
| 2463 | */ |
| 2464 | |
| 2465 | isPushOnly() { |
| 2466 | for (const op of this.code) { |
| 2467 | if (op.value === -1) |
| 2468 | return false; |
| 2469 | |
| 2470 | if (op.value > opcodes.OP_16) |
| 2471 | return false; |
| 2472 | } |
| 2473 | |
| 2474 | return true; |
| 2475 | } |
| 2476 | |
| 2477 | /** |
| 2478 | * Count the sigops in the script. |
no outgoing calls
no test coverage detected