bitcoin-blk-file-reader icon indicating copy to clipboard operation
bitcoin-blk-file-reader copied to clipboard

Error on Ubuntu when unpacking data file

Open rohitchormale opened this issue 6 years ago • 6 comments

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 ?

rohitchormale avatar Jul 24 '18 04:07 rohitchormale

I think i figured it out. will do more testing and will send patch soon.

rohitchormale avatar Jul 24 '18 05:07 rohitchormale

Hi! sorry did not get any notification for your issue. I was testing it on ubuntu with python2.7

mrqc avatar Aug 24 '18 18:08 mrqc

Maybe your bug is fixed with the latest version?

mrqc avatar Aug 24 '18 18:08 mrqc

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.

rohitchormale avatar Aug 25 '18 07:08 rohitchormale

Your version or my latest version. Because I think your implementation does not consider extended transaction format. This was the bug.

mrqc avatar Aug 25 '18 19:08 mrqc

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.

rohitchormale avatar Aug 26 '18 05:08 rohitchormale