user41079: When writing a blockchain parser I've found that some blk00*.dat files contain zeros instead of blocks. (I got zero where magic bytes were expected, looked in the file and saw there are more zeros.)
What does it mean? Do I have corrupted chain? How do I fix my parser, so it would interpret the file correctly?

user12983: zero instead of magic bytes means the end of bictoin block data. just skip the rest of file and follow to next blk-file
by the way. it is better to assemble blk-files for future parsing with old clients (I use 0.8.5) because they put blocks in right order

41079: <p>When writing a blockchain parser I've found that some blk00*.dat files contain zeros instead of blocks. (I got zero where magic bytes were expected, looked in the file and saw there are more zeros.)</p>

<p>What does it mean? Do I have corrupted chain? How do I fix my parser, so it would interpret the file correctly?</p>
 12983: <p>zero instead of magic bytes means the end of bictoin block data. just skip the rest of file and follow to next blk-file</p>

<p>by the way. it is better to assemble blk-files for future parsing with old clients (I use 0.8.5) because they put blocks in right order</p>
