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

Method PushInt

txscript/stack.go:59–61  ·  view source on GitHub ↗

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

(val scriptNum)

Source from the content-addressed store, hash-verified

57//
58// Stack transformation: [... x1 x2] -> [... x1 x2 int]
59func (s *stack) PushInt(val scriptNum) {
60 s.PushByteArray(val.Bytes())
61}
62
63// PushBool converts the provided boolean to a suitable byte array then pushes
64// it onto the top of the stack.

Callers 15

TestStackFunction · 0.95
opcode1NegateFunction · 0.80
opcodeNFunction · 0.80
opcodeDepthFunction · 0.80
opcodeSizeFunction · 0.80
opcode1AddFunction · 0.80
opcode1SubFunction · 0.80
opcodeNegateFunction · 0.80
opcodeAbsFunction · 0.80
opcodeNotFunction · 0.80
opcode0NotEqualFunction · 0.80
opcodeAddFunction · 0.80

Calls 2

PushByteArrayMethod · 0.95
BytesMethod · 0.45

Tested by 1

TestStackFunction · 0.76