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

Method is_small_int

qa/rpc-tests/test_framework/script.py:78–83  ·  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

76 return int(self - OP_1+1)
77
78 def is_small_int(self):
79 """Return true if the op pushes a small integer to the stack"""
80 if 0x51 <= self <= 0x60 or self == 0:
81 return True
82 else:
83 return False
84
85 def __str__(self):
86 return repr(self)

Callers 1

__iter__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected