Skip to content

MemoryError when read block >= blk00976.dat #17

@vincenzopalazzo

Description

@vincenzopalazzo

Hi,

I have a this problem when reading a file >= 976,
I think this problem is for type varInt because the method implemented in the parser is for CCompoctSize and not for CVarInt

Traceback (most recent call last):
  File "/home/vincenzo/Github/blocktools/sight.py", line 85, in <module>
    main()
  File "/home/vincenzo/Github/blocktools/sight.py", line 81, in main
    parse(blockchain, blkNo)
  File "/home/vincenzo/Github/blocktools/sight.py", line 27, in parse
    block = Block(blockchain)
  File "/home/vincenzo/Github/blocktools/block.py", line 71, in __init__
    tx = Tx(blockchain)
  File "/home/vincenzo/Github/blocktools/block.py", line 134, in __init__
    input = txInput(blockchain)
  File "/home/vincenzo/Github/blocktools/block.py", line 175, in __init__
    self.scriptSig = blockchain.read(self.scriptLen)  # Blockchain is the input file.
MemoryError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions