HomePhabricator

Initialize database before checking changed txindex
067a6092ac33Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

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.

That also means we don't need to check -reindex anymore, as the wiping/reinit
of the databases happens before checking.

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Jun 22 2013, 14:03
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING905738a15aa6: Merge pull request #2781 from sipa/keytimemem
Branches
Unknown
Tags
Unknown

Event Timeline

Pieter Wuille <pieter.wuille@gmail.com> committed rSTAGING067a6092ac33: Initialize database before checking changed txindex (authored by Pieter Wuille <pieter.wuille@gmail.com>).Jun 22 2013, 14:14