Return the maximum number of ops needed to satisfy this script non-malleably.
| 1560 | |
| 1561 | //! Return the maximum number of ops needed to satisfy this script non-malleably. |
| 1562 | std::optional<uint32_t> GetOps() const { |
| 1563 | if (!ops.sat.Valid()) return {}; |
| 1564 | return ops.count + ops.sat.Value(); |
| 1565 | } |
| 1566 | |
| 1567 | //! Return the number of ops in the script (not counting the dynamic ones that depend on execution). |
| 1568 | uint32_t GetStaticOps() const { return ops.count; } |