MCPcopy
hub / github.com/btcsuite/btcd / PushBool

Method PushBool

txscript/stack.go:67–69  ·  view source on GitHub ↗

PushBool converts the provided boolean to a suitable byte array then pushes it onto the top of the stack. Stack transformation: [... x1 x2] -> [... x1 x2 bool]

(val bool)

Source from the content-addressed store, hash-verified

65//
66// Stack transformation: [... x1 x2] -> [... x1 x2 bool]
67func (s *stack) PushBool(val bool) {
68 s.PushByteArray(fromBool(val))
69}
70
71// PopByteArray pops the value off the top of the stack and returns it.
72//

Callers 4

TestStackFunction · 0.95
opcodeEqualFunction · 0.80
opcodeCheckSigFunction · 0.80
opcodeCheckMultiSigFunction · 0.80

Calls 2

PushByteArrayMethod · 0.95
fromBoolFunction · 0.85

Tested by 1

TestStackFunction · 0.76