aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.h
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2014-02-16 22:00:12 +0100
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2014-02-17 15:44:21 +0100
commit82e96006ae03a7debebb9ad36f939ddabb0d2f9f (patch)
treedc250edee27c6e4bae33abcafa999cf74acc0c6e /src/txdb.h
parent879b39075868edd8073d08f75eb91ee0bc07c450 (diff)
add constants for shared (GUI/core) -dbcache settings
- adds nDefaultDbCache, nMaxDbCache and nMinDbCache in txdb.h
Diffstat (limited to 'src/txdb.h')
-rw-r--r--src/txdb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/txdb.h b/src/txdb.h
index 7ce6585d37..0512396e97 100644
--- a/src/txdb.h
+++ b/src/txdb.h
@@ -18,6 +18,13 @@ class CBigNum;
class CCoins;
class uint256;
+// -dbcache default (MiB)
+static const int nDefaultDbCache = 100;
+// max. -dbcache in (MiB)
+static const int nMaxDbCache = sizeof(void*) > 4 ? 4096 : 1024;
+// min. -dbcache in (MiB)
+static const int nMinDbCache = 4;
+
/** CCoinsView backed by the LevelDB coin database (chainstate/) */
class CCoinsViewDB : public CCoinsView
{