Skip to content

OP_CODE %d is probably obselete pay to address #14

Description

@prologic-dev
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: ''

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions