Add undo data to checks to be sure all required info can be opened.
Scan active chain instead of map of blocks.