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

Function opcodeDrop

txscript/opcode.go:1302–1304  ·  view source on GitHub ↗

opcodeDrop removes the top item from the data stack. Stack transformation: [... x1 x2 x3] -> [... x1 x2]

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

Source from the content-addressed store, hash-verified

1300//
1301// Stack transformation: [... x1 x2 x3] -> [... x1 x2]
1302func opcodeDrop(op *opcode, data []byte, vm *Engine) error {
1303 return vm.dstack.DropN(1)
1304}
1305
1306// opcodeDup duplicates the top item on the data stack.
1307//

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…