opcodeToAltStack removes the top item from the main data stack and pushes it onto the alternate data stack. Main data stack transformation: [... x1 x2 x3] -> [... x1 x2] Alt data stack transformation: [... y1 y2 y3] -> [... y1 y2 y3 x3]
(op *opcode, data []byte, vm *Engine)
| 1200 | // Main data stack transformation: [... x1 x2 x3] -> [... x1 x2] |
| 1201 | // Alt data stack transformation: [... y1 y2 y3] -> [... y1 y2 y3 x3] |
| 1202 | func opcodeToAltStack(op *opcode, data []byte, vm *Engine) error { |
| 1203 | so, err := vm.dstack.PopByteArray() |
| 1204 | if err != nil { |
| 1205 | return err |
| 1206 | } |
| 1207 | vm.astack.PushByteArray(so) |
| 1208 | |
| 1209 | return nil |
| 1210 | } |
| 1211 | |
| 1212 | // opcodeFromAltStack removes the top item from the alternate data stack and |
| 1213 | // pushes it onto the main data stack. |
nothing calls this directly
no test coverage detected
searching dependent graphs…