Make lsn_reset ("detach databases") optional and off by default.
authorPieter Wuille <pieter.wuille@gmail.com>
Tue, 17 Apr 2012 21:03:24 +0000 (23:03 +0200)
committerPieter Wuille <pieter.wuille@gmail.com>
Wed, 25 Apr 2012 22:31:54 +0000 (00:31 +0200)
commit83743ed6810cfe6a0c0c260fa2477dffbe05950c
tree2b151b9c1453fcdd0da74deb9431ec2db29e15a7
parentc2e8c8acd8ae0c94c70b59f55169841ad195bb99
Make lsn_reset ("detach databases") optional and off by default.

Add an option -detachdb (and entry in OptionDialog), without which no
lsn_reset is called on addr.dat and blkindex.dat. That means these
files cannot be moved to a new environment, but shutdown can be
significantly faster. The wallet file is always lsn_reset'ed.

-detachdb corresponds to the old behaviour, though it is off by
default now to speed up shutdowns.
src/db.cpp
src/db.h
src/init.cpp
src/qt/optionsdialog.cpp
src/qt/optionsmodel.cpp
src/qt/optionsmodel.h