bitcoin-blk-file-reader
bitcoin-blk-file-reader copied to clipboard
Error on Ubuntu when unpacking data file
Thanks for sharing program. When I was trying to run program on Ubuntu, it is giving below error
unpack requires a string argument of length 4.
at this func
def readIntLittleEndian(blockFile):
return struct.pack(">I", struct.unpack("<I", blockFile.read(4))[0])
Can you please let me know which os, is it tested ?
I think i figured it out. will do more testing and will send patch soon.
Hi! sorry did not get any notification for your issue. I was testing it on ubuntu with python2.7
Maybe your bug is fixed with the latest version?
Yes I tested it on Mint 19 which is based on Ubuntu 18.04. If you want to test any other os, before merging, let me know. happy to assist.
Your version or my latest version. Because I think your implementation does not consider extended transaction format. This was the bug.
i tested the latest code. infinite loop issue is fixed. so you can close issue and pull request. thnx again man for this extractor. it really helped one of my friend from uni.