MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetExecStackSize

Method GetExecStackSize

src/script/miniscript.h:1589–1592  ·  view source on GitHub ↗

Return the maximum size of the stack during execution of this script.

Source from the content-addressed store, hash-verified

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 {

Callers 2

TestMethod · 0.80
TestNodeFunction · 0.80

Calls 2

ValidMethod · 0.45
ExecMethod · 0.45

Tested by 2

TestMethod · 0.64
TestNodeFunction · 0.64