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

Function opcodeFalse

txscript/opcode.go:788–791  ·  view source on GitHub ↗

opcodeFalse pushes an empty array to the data stack to represent false. Note that 0, when encoded as a number according to the numeric encoding consensus rules, is an empty array.

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

Source from the content-addressed store, hash-verified

786// that 0, when encoded as a number according to the numeric encoding consensus
787// rules, is an empty array.
788func opcodeFalse(op *opcode, data []byte, vm *Engine) error {
789 vm.dstack.PushByteArray(nil)
790 return nil
791}
792
793// opcodePushData is a common handler for the vast majority of opcodes that push
794// raw data (bytes) to the data stack.

Callers

nothing calls this directly

Calls 1

PushByteArrayMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…