txscript: Correct comments on alt stack methods. (#657)

This commit is contained in:
Dave Collins 2016-04-11 14:22:25 -05:00
parent 1d83cd5721
commit 5ff5fc5fa2

View file

@ -564,13 +564,13 @@ func (vm *Engine) SetStack(data [][]byte) {
setStack(&vm.dstack, data) setStack(&vm.dstack, data)
} }
// GetAltStack returns the contents of the primary stack as an array. where the // GetAltStack returns the contents of the alternate stack as an array where the
// last item in the array is the top of the stack. // last item in the array is the top of the stack.
func (vm *Engine) GetAltStack() [][]byte { func (vm *Engine) GetAltStack() [][]byte {
return getStack(&vm.astack) return getStack(&vm.astack)
} }
// SetAltStack sets the contents of the primary stack to the contents of the // SetAltStack sets the contents of the alternate stack to the contents of the
// provided array where the last item in the array will be the top of the stack. // provided array where the last item in the array will be the top of the stack.
func (vm *Engine) SetAltStack(data [][]byte) { func (vm *Engine) SetAltStack(data [][]byte) {
setStack(&vm.astack, data) setStack(&vm.astack, data)