MCPcopy Index your code
hub / github.com/btcsuite/btcd / SetStack

Method SetStack

txscript/engine.go:1500–1502  ·  view source on GitHub ↗

SetStack sets the contents of the primary stack to the contents of the provided array where the last item in the array will be the top of the stack.

(data [][]byte)

Source from the content-addressed store, hash-verified

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.
1500func (vm *Engine) SetStack(data [][]byte) {
1501 setStack(&vm.dstack, data)
1502}
1503
1504// GetAltStack returns the contents of the alternate stack as an array where the
1505// last item in the array is the top of the stack.

Callers 2

verifyWitnessProgramMethod · 0.95
StepMethod · 0.95

Calls 1

setStackFunction · 0.85

Tested by

no test coverage detected