You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm using Service.gettransaction(txid) to get a lot of transactions and found one which the library fails to process properly.
Way to test:
from bitcoinlib.services.services import *
srv = Service(network='bitcoin')
txid = "a618dc10b8a1f9d9a1469b3bb84fc17da86df2d51c27e2aa16fa130953840735"
print(srv.gettransaction(txid)) # <=== here returns False
I've traced the flow to /bitcoinlib/scripts.py:
class Script(object):
def parse_bytesio(...):
(...)
if data_type == 'signature':
try:
sig = Signature.parse_bytes(data)
signatures.append(sig)
hash_type = sig.hash_type
blueprint.append('signature')
except Exception as e:
# ====== > Here `e` is "Expected a sequence of 69 bytes, got 70"
(...)
As far as I see here this transaction looks quite valid.
Could you help, please?
Python 3.11.4
bitcoinlib 0.6.12
The text was updated successfully, but these errors were encountered:
Hello,
I'm using
Service.gettransaction(txid)
to get a lot of transactions and found one which the library fails to process properly.Way to test:
I've traced the flow to
/bitcoinlib/scripts.py
:As far as I see here this transaction looks quite valid.
Could you help, please?
Python 3.11.4
bitcoinlib 0.6.12
The text was updated successfully, but these errors were encountered: