chains that do not have continuous block numbers (ex: block 50's parent is block 45)
The good approach will be to import the logic from the merger when we want to produce merged blocks directly (for reprocessing in batch mode, or catching up from far behind)
The proper way to check block continuity is implemented in the merger, using the forkDB from bstream/forkable package.
The mindreader simply writes blocks to a file when using the batch mode or when processing blocks older than mergeThresholdBlockAge.
There used to be a simple continuity checker that ensured that "new block is (last block - 1)" but it was removed because it fails in 2 cases:
The good approach will be to import the logic from the merger when we want to produce merged blocks directly (for reprocessing in batch mode, or catching up from far behind)