Traceback (most recent call last):
File "/var/www/html/work/wallet/blocktools/block.py", line 174, in decodeScriptPubkey
op_code1 = OPCODE_NAMES[op_idx]
KeyError: 36
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "sight.py", line 45, in
main()
File "sight.py", line 40, in main
parse(blockchain,blkNo)
File "sight.py", line 20, in parse
block.toString()
File "/var/www/html/work/wallet/blocktools/block.py", line 88, in toString
t.toString()
File "/var/www/html/work/wallet/blocktools/block.py", line 118, in toString
o.toString()
File "/var/www/html/work/wallet/blocktools/block.py", line 169, in toString
print ("\tScriptPubkey:\t %s" % self.decodeScriptPubkey(self.pubkey))
File "/var/www/html/work/wallet/blocktools/block.py", line 178, in decodeScriptPubkey
op_codeTail = OPCODE_NAMES[int(hexstr[2+keylen2:2+keylen2+2],16)]
ValueError: invalid literal for int() with base 16: ''
Traceback (most recent call last): File "/var/www/html/work/wallet/blocktools/block.py", line 174, in decodeScriptPubkey op_code1 = OPCODE_NAMES[op_idx] KeyError: 36
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "sight.py", line 45, in
main()
File "sight.py", line 40, in main
parse(blockchain,blkNo)
File "sight.py", line 20, in parse
block.toString()
File "/var/www/html/work/wallet/blocktools/block.py", line 88, in toString
t.toString()
File "/var/www/html/work/wallet/blocktools/block.py", line 118, in toString
o.toString()
File "/var/www/html/work/wallet/blocktools/block.py", line 169, in toString
print ("\tScriptPubkey:\t %s" % self.decodeScriptPubkey(self.pubkey))
File "/var/www/html/work/wallet/blocktools/block.py", line 178, in decodeScriptPubkey
op_codeTail = OPCODE_NAMES[int(hexstr[2+keylen2:2+keylen2+2],16)]
ValueError: invalid literal for int() with base 16: ''