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

ValueError: invalid literal for int() with base 16: '' #29

Open
Goatghosts opened this issue Jan 24, 2024 · 0 comments
Open

ValueError: invalid literal for int() with base 16: '' #29

Goatghosts opened this issue Jan 24, 2024 · 0 comments

Comments

@Goatghosts
Copy link

Hi, I would like to share a few txids that the presented code for getting rsz values ​​is not able to process.
In each case I get the same error:

Starting Program...
Traceback (most recent call last):
  File "D:\Desktop\getz_input.py", line 129, in <module>
    m = parseTx(rawtx)
        ^^^^^^^^^^^^^^
  File "D:\Desktop\getz_input.py", line 73, in parseTx
    r, s, pub = split_sig_pieces(script)
                ^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Desktop\getz_input.py", line 44, in split_sig_pieces
    sigLen = int(script[2:4], 16)
             ^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 16: ''

It would be great if you could let me know how to fix this error.
Bitcoin TXID-s:

  1. cd547fe6f8fde5ed62c4226e82e4f358c413178f28f8660bbb2be08fb6177bb6
  2. a00efb5bba99dbb146da2e801ef6500a380f856861e83438fa46682bc89ab6b2
  3. 694f517ccc128beebbe54ac8a715e0bdd7f1ddeafc943af5e2b8914918119478
  4. b2b86d11c453fc41be430ffbce43bd70e8d38ee1b5389c9e93c9b62355fd8054
  5. 5f81a95d1c87441a7d8a69c563cbcf623ebfbb2ec3cac07640dcbda63d5698a5
  6. d51e21855fa52831be0c0a1a4138e88600e5fcc70c7acd4aad8697d5c9b76245
  7. 50d6edfdab3a6302fac5c5618162bc10cdfb54914e7de6c456200a2dab3d2417
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