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

Function opcodeRot

txscript/opcode.go:1360–1362  ·  view source on GitHub ↗

opcodeRot rotates the top 3 items on the data stack to the left. Stack transformation: [... x1 x2 x3] -> [... x2 x3 x1]

(op *opcode, data []byte, vm *Engine)

Source from the content-addressed store, hash-verified

1358//
1359// Stack transformation: [... x1 x2 x3] -> [... x2 x3 x1]
1360func opcodeRot(op *opcode, data []byte, vm *Engine) error {
1361 return vm.dstack.RotN(1)
1362}
1363
1364// opcodeSwap swaps the top two items on the stack.
1365//

Callers

nothing calls this directly

Calls 1

RotNMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…