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

Function opcode2Drop

txscript/opcode.go:1230–1232  ·  view source on GitHub ↗

opcode2Drop removes the top 2 items from the data stack. Stack transformation: [... x1 x2 x3] -> [... x1]

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

Source from the content-addressed store, hash-verified

1228//
1229// Stack transformation: [... x1 x2 x3] -> [... x1]
1230func opcode2Drop(op *opcode, data []byte, vm *Engine) error {
1231 return vm.dstack.DropN(2)
1232}
1233
1234// opcode2Dup duplicates the top 2 items on the data stack.
1235//

Callers

nothing calls this directly

Calls 1

DropNMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…