I noticed some other code reading raw files and claiming that the PIPERBLK field had to be used to find missing blocks. However rawspec doesn't seem to use this field at all. It seems like the logic to detect missing blocks calculates PIPERBLK (calling it dpktidx) by subtracting the first two PKTIDX's it sees:
|
// Lazy init dpktidx as soon as possible |
but, that doesn't seem correct, I think it will cause rawspec to fail if the second block is ever missing.
I noticed some other code reading raw files and claiming that the PIPERBLK field had to be used to find missing blocks. However rawspec doesn't seem to use this field at all. It seems like the logic to detect missing blocks calculates PIPERBLK (calling it dpktidx) by subtracting the first two PKTIDX's it sees:
rawspec/rawspec.c
Line 911 in 15790b1
but, that doesn't seem correct, I think it will cause rawspec to fail if the second block is ever missing.