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

struct.error #15

Open
Luigini opened this issue Mar 23, 2019 · 1 comment
Open

struct.error #15

Luigini opened this issue Mar 23, 2019 · 1 comment

Comments

@Luigini
Copy link

Luigini commented Mar 23, 2019

Hi,
I'm newbie in Python Language and I need some help, please:

Executing "python sight.py .../blocks/blk00976.dat", this error appears me in Block nº 33 into file blk00976.dat and program stops:

####################Block counter No. 33####################
Traceback (most recent call last):
File "sight.py", line 42, in
main()
File "sight.py", line 37, in main
parse(blockchain,blkNo)
File "sight.py", line 14, in parse
block = Block(blockchain)
File "/home/donvito/Escritorio/blocktools/block.py", line 47, in init
tx = Tx(blockchain)
File "/home/donvito/Escritorio/blocktools/block.py", line 102, in init
output = txOutput(blockchain)
File "/home/donvito/Escritorio/blocktools/block.py", line 160, in init
self.value = uint8(blockchain)
File "/home/donvito/Escritorio/blocktools/blocktools.py", line 14, in uint8
return struct.unpack('Q', stream.read(8))[0]
struct.error: unpack requires a string argument of length 8

Executing with blocks blk00977.dat and blk00978 , the error is:
struct.error: unpack requires a string argument of length 4

Executing from blk00979 to blk00999 , the error is:
OverflowError: Python int too large to convert to C long

And from blk01000.dat to final blkXXXXX.dat which I've downloaded it (blk01565.dat in this case), the errors are the same as mentioned above or simply: MemoryError

I'm stuck and I do not know how to continue. I wish you can help me fix the problem soon

Regards!

@vincenzopalazzo
Copy link

@Luigini The parser does not support the Segregated Witness, this is another issue correlated, I have added the support at this and this is my PR

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

2 participants