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

Function opcodeNip

txscript/opcode.go:1316–1318  ·  view source on GitHub ↗

opcodeNip removes the item before the top item on the data stack. Stack transformation: [... x1 x2 x3] -> [... x1 x3]

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

Source from the content-addressed store, hash-verified

1314//
1315// Stack transformation: [... x1 x2 x3] -> [... x1 x3]
1316func opcodeNip(op *opcode, data []byte, vm *Engine) error {
1317 return vm.dstack.NipN(1)
1318}
1319
1320// opcodeOver duplicates the item before the top item on the data stack.
1321//

Callers

nothing calls this directly

Calls 1

NipNMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…