MCPcopy Create free account
hub / github.com/btcsuite/btcd / GetStack

Method GetStack

txscript/engine.go:1494–1496  ·  view source on GitHub ↗

GetStack returns the contents of the primary stack as an array. where the last item in the array is the top of the stack.

()

Source from the content-addressed store, hash-verified

1492// GetStack returns the contents of the primary stack as an array. where the
1493// last item in the array is the top of the stack.
1494func (vm *Engine) GetStack() [][]byte {
1495 return getStack(&vm.dstack)
1496}
1497
1498// SetStack sets the contents of the primary stack to the contents of the
1499// provided array where the last item in the array will be the top of the stack.

Callers 2

verifyWitnessProgramMethod · 0.95
StepMethod · 0.95

Calls 1

getStackFunction · 0.85

Tested by

no test coverage detected