Split off InitBlockIndex from LoadBlockIndex, and call it again after finishing reindexing. This makes sure -reindex on an empty datadir still ends up with a sane database.
Also, protecting the initialization with a try-catch block.
Split off InitBlockIndex from LoadBlockIndex, and call it again after finishing reindexing. This makes sure -reindex on an empty datadir still ends up with a sane database.
Also, protecting the initialization with a try-catch block.
Ok, that seems plausible.
I take back my ACK: this breaks unit tests. TestingSetup() in test/test_bitcoin.cpp needs to call InitBlockIndex, I think.
Fixed.
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/386037615ae02f972287a958d22a5bd2760626a7 for binaries and test log.
Milestone
0.8.0