bitcoin/bitcoin — pull request #1943 by sipa (2012-10-21 22:13:23+00:00)
Title: Add -reindex, to perform in-place reindexing of block chain files

Flushes the blktree/ and coins/ databases, and reindexes the block chain files, as if their contents was loaded via -loadblock.

Based on earlier work by Jeff Garzik.

This is a step towards automatic upgrade of pre-ultraprune databases as well.