aboutsummaryrefslogtreecommitdiff
path: root/src/script.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2013-06-22 16:03:11 +0200
committerPieter Wuille <[email protected]>2013-06-22 16:14:26 +0200
commit067a6092ac33b503a645af6b65c400ee1e7e0e4a (patch)
tree9f6d53234bfca320dfc7d81a18b4559f5ecb553a /src/script.cpp
parentMerge pull request #2781 from sipa/keytimemem (diff)
downloaddiscoin-067a6092ac33b503a645af6b65c400ee1e7e0e4a.tar.xz
discoin-067a6092ac33b503a645af6b65c400ee1e7e0e4a.zip
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.
Diffstat (limited to 'src/script.cpp')
0 files changed, 0 insertions, 0 deletions