aboutsummaryrefslogtreecommitdiff
path: root/src/db.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-04-17 23:03:24 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2012-04-26 00:31:54 +0200
commit83743ed6810cfe6a0c0c260fa2477dffbe05950c (patch)
tree2b151b9c1453fcdd0da74deb9431ec2db29e15a7 /src/db.h
parentc2e8c8acd8ae0c94c70b59f55169841ad195bb99 (diff)
downloadbitcoin-83743ed6810cfe6a0c0c260fa2477dffbe05950c.tar.xz
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.
Diffstat (limited to 'src/db.h')
-rw-r--r--src/db.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/db.h b/src/db.h
index 48e10a95a7..3ce8f1758f 100644
--- a/src/db.h
+++ b/src/db.h
@@ -25,6 +25,7 @@ class CWallet;
class CWalletTx;
extern unsigned int nWalletDBUpdated;
+extern bool fDetachDB;
extern DbEnv dbenv;
extern void DBFlush(bool fShutdown);