Return the maximum size of the stack during execution of this script.
| 1587 | |
| 1588 | //! Return the maximum size of the stack during execution of this script. |
| 1589 | std::optional<uint32_t> GetExecStackSize() const { |
| 1590 | if (!ss.Sat().Valid()) return {}; |
| 1591 | return ss.Sat().Exec() + static_cast<int32_t>(IsBKW()); |
| 1592 | } |
| 1593 | |
| 1594 | //! Check the maximum stack size for this script against the policy limit. |
| 1595 | bool CheckStackSize() const { |