unknow op_codes decoding
This commit is contained in:
parent
40d4af264a
commit
b138e58ed1
@ -151,6 +151,9 @@ OPCODE["OP_INVALIDOPCODE"] = 0xff
|
|||||||
RAW_OPCODE = dict((OPCODE[i], i) for i in OPCODE)
|
RAW_OPCODE = dict((OPCODE[i], i) for i in OPCODE)
|
||||||
BYTE_OPCODE = dict((i, bytes([OPCODE[i]])) for i in OPCODE)
|
BYTE_OPCODE = dict((i, bytes([OPCODE[i]])) for i in OPCODE)
|
||||||
HEX_OPCODE = dict((i, bytes([OPCODE[i]]).hex()) for i in OPCODE)
|
HEX_OPCODE = dict((i, bytes([OPCODE[i]]).hex()) for i in OPCODE)
|
||||||
|
for i in range(256):
|
||||||
|
if i not in RAW_OPCODE:
|
||||||
|
RAW_OPCODE[i]="OP_UNKNOWN"
|
||||||
|
|
||||||
OP_FALSE = BYTE_OPCODE["OP_FALSE"]
|
OP_FALSE = BYTE_OPCODE["OP_FALSE"]
|
||||||
OP_0 = BYTE_OPCODE["OP_0"]
|
OP_0 = BYTE_OPCODE["OP_0"]
|
||||||
|
|||||||
2
setup.py
2
setup.py
@ -5,7 +5,7 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
|
|
||||||
setup(name='pybtc',
|
setup(name='pybtc',
|
||||||
version='2.0.7',
|
version='2.0.8',
|
||||||
description='Python Bitcoin library',
|
description='Python Bitcoin library',
|
||||||
keywords='bitcoin',
|
keywords='bitcoin',
|
||||||
url='https://github.com/bitaps-com/pybtc',
|
url='https://github.com/bitaps-com/pybtc',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user