miniscript::Node::GetStackSize

Return the maximum number of stack elements needed to satisfy this script non-malleably.

Synopsis

Declared in <script/miniscript.h>

std::optional<uint32_t>
GetStackSize() const;

Return Value

The stack element count, or std::nullopt if no satisfaction exists.