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

Function isOpcodeConditional

txscript/engine.go:393–406  ·  view source on GitHub ↗

isOpcodeConditional returns whether or not the opcode is a conditional opcode which changes the conditional execution stack when executed.

(opcode byte)

Source from the content-addressed store, hash-verified

391// isOpcodeConditional returns whether or not the opcode is a conditional opcode
392// which changes the conditional execution stack when executed.
393func isOpcodeConditional(opcode byte) bool {
394 switch opcode {
395 case OP_IF:
396 return true
397 case OP_NOTIF:
398 return true
399 case OP_ELSE:
400 return true
401 case OP_ENDIF:
402 return true
403 default:
404 return false
405 }
406}
407
408// checkMinimalDataPush returns whether or not the provided opcode is the
409// smallest possible way to represent the given data. For example, the value 15

Callers 1

executeOpcodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…