primecoin/primecoin — pull request #20 by mhirki (2013-11-13 12:59:01+00:00)
Title: Primecoin: Fix mining code crashes when doing a -reindex.

The mining code crashes when trying to access vPrimes because GeneratePrimeTable is not called when doing a -reindex. Another crash happens if pindexBest happens to be NULL when the mining threads are starting.