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

Function opcode3Dup

txscript/opcode.go:1244–1246  ·  view source on GitHub ↗

opcode3Dup duplicates the top 3 items on the data stack. Stack transformation: [... x1 x2 x3] -> [... x1 x2 x3 x1 x2 x3]

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

Source from the content-addressed store, hash-verified

1242//
1243// Stack transformation: [... x1 x2 x3] -> [... x1 x2 x3 x1 x2 x3]
1244func opcode3Dup(op *opcode, data []byte, vm *Engine) error {
1245 return vm.dstack.DupN(3)
1246}
1247
1248// opcode2Over duplicates the 2 items before the top 2 items on the data stack.
1249//

Callers

nothing calls this directly

Calls 1

DupNMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…