Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OP_CODE %d is probably obselete pay to address #14

Open
prologic-dev opened this issue Nov 1, 2018 · 0 comments
Open

OP_CODE %d is probably obselete pay to address #14

prologic-dev opened this issue Nov 1, 2018 · 0 comments

Comments

@prologic-dev
Copy link

OP_CODE %d is probably obselete pay to address

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: ''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant