Skip to content

Commit b138e58

Browse files
committed
unknow op_codes decoding
1 parent 40d4af2 commit b138e58

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pybtc/opcodes.py

+3
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@
151151
RAW_OPCODE = dict((OPCODE[i], i) for i in OPCODE)
152152
BYTE_OPCODE = dict((i, bytes([OPCODE[i]])) for i in OPCODE)
153153
HEX_OPCODE = dict((i, bytes([OPCODE[i]]).hex()) for i in OPCODE)
154+
for i in range(256):
155+
if i not in RAW_OPCODE:
156+
RAW_OPCODE[i]="OP_UNKNOWN"
154157

155158
OP_FALSE = BYTE_OPCODE["OP_FALSE"]
156159
OP_0 = BYTE_OPCODE["OP_0"]

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
setup(name='pybtc',
8-
version='2.0.7',
8+
version='2.0.8',
99
description='Python Bitcoin library',
1010
keywords='bitcoin',
1111
url='https://github.com/bitaps-com/pybtc',

0 commit comments

Comments
 (0)