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

Function opcodeTuck

txscript/opcode.go:1375–1377  ·  view source on GitHub ↗

opcodeTuck inserts a duplicate of the top item of the data stack before the second-to-top item. Stack transformation: [... x1 x2] -> [... x2 x1 x2]

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

Source from the content-addressed store, hash-verified

1373//
1374// Stack transformation: [... x1 x2] -> [... x2 x1 x2]
1375func opcodeTuck(op *opcode, data []byte, vm *Engine) error {
1376 return vm.dstack.Tuck()
1377}
1378
1379// opcodeSize pushes the size of the top item of the data stack onto the data
1380// stack.

Callers

nothing calls this directly

Calls 1

TuckMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…