MCPcopy Create free account
hub / github.com/btcsuite/btcd / opcode2Over

Function opcode2Over

txscript/opcode.go:1251–1253  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1249//
1250// Stack transformation: [... x1 x2 x3 x4] -> [... x1 x2 x3 x4 x1 x2]
1251func opcode2Over(op *opcode, data []byte, vm *Engine) error {
1252 return vm.dstack.OverN(2)
1253}
1254
1255// opcode2Rot rotates the top 6 items on the data stack to the left twice.
1256//

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…