bitcoin/bitcoin — pull request #2783 by sipa (2013-06-22 14:08:29+00:00)
Title: Initialize database before checking changed txindex

In case no database exists yet, and -txindex(=1) is passed, we currently first check whether fTxIndex differs from -txindex (and ask the user to reindex in that case), and only afterwards initialize the database. By swapping these
around (the initialization is a no-op in case the database already exists), we allow it to be born in txindex mode, without warning.

Closes #2782.