tenthirtyone / blocktools

Block Parser for Bitcoin
142 stars 73 forks source link

Parser parses hex incorrectly #3

Closed instagibbs closed 8 years ago

instagibbs commented 8 years ago

https://github.com/tenthirtyone/blocktools/blob/master/blocktools.py#L37

Either use binascii.hexlify, or do '%02x' to make sure it prints the leading zeros. Otherwise it parses bad transactions/pubkeys quite often.

tenthirtyone commented 8 years ago

Thanks. I can make the change or if you'd like send a pull request

instagibbs commented 8 years ago

Sent. Thanks!