MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / is_small_int

Method is_small_int

test/functional/test_framework/script.py:66–71  ·  view source on GitHub ↗

Return true if the op pushes a small integer to the stack

(self)

Source from the content-addressed store, hash-verified

64 return int(self - OP_1+1)
65
66 def is_small_int(self):
67 """Return true if the op pushes a small integer to the stack"""
68 if 0x51 <= self <= 0x60 or self == 0:
69 return True
70 else:
71 return False
72
73 def __str__(self):
74 return repr(self)

Callers 1

__iter__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected