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

Function opcode2Rot

txscript/opcode.go:1258–1260  ·  view source on GitHub ↗

opcode2Rot rotates the top 6 items on the data stack to the left twice. Stack transformation: [... x1 x2 x3 x4 x5 x6] -> [... x3 x4 x5 x6 x1 x2]

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

Source from the content-addressed store, hash-verified

1256//
1257// Stack transformation: [... x1 x2 x3 x4 x5 x6] -> [... x3 x4 x5 x6 x1 x2]
1258func opcode2Rot(op *opcode, data []byte, vm *Engine) error {
1259 return vm.dstack.RotN(2)
1260}
1261
1262// opcode2Swap swaps the top 2 items on the data stack with the 2 that come
1263// before them.

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…