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

Function opcode2Dup

txscript/opcode.go:1237–1239  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1235//
1236// Stack transformation: [... x1 x2 x3] -> [... x1 x2 x3 x2 x3]
1237func opcode2Dup(op *opcode, data []byte, vm *Engine) error {
1238 return vm.dstack.DupN(2)
1239}
1240
1241// opcode3Dup duplicates the top 3 items on the data stack.
1242//

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…