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

Function opcodeOver

txscript/opcode.go:1323–1325  ·  view source on GitHub ↗

opcodeOver duplicates the item before the top item on the data stack. Stack transformation: [... x1 x2 x3] -> [... x1 x2 x3 x2]

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

Source from the content-addressed store, hash-verified

1321//
1322// Stack transformation: [... x1 x2 x3] -> [... x1 x2 x3 x2]
1323func opcodeOver(op *opcode, data []byte, vm *Engine) error {
1324 return vm.dstack.OverN(1)
1325}
1326
1327// opcodePick treats the top item on the data stack as an integer and duplicates
1328// the item on the stack that number of items back to the top.

Callers

nothing calls this directly

Calls 1

OverNMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…