aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-02-18 08:35:19 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-02-18 08:35:45 +0100
commitbd8e3751d7cec48428283d29682db7b80474f2ca (patch)
tree7d90efc9dc0241fadb3d0946f4d0786c29584c76 /src/txdb.h
parent0a0cf1433769e495839c5695f388b277b9ff2dfa (diff)
parent82e96006ae03a7debebb9ad36f939ddabb0d2f9f (diff)
downloadbitcoin-bd8e3751d7cec48428283d29682db7b80474f2ca.tar.xz
Merge pull request #3687
82e9600 add constants for shared (GUI/core) -dbcache settings (Philip Kaufmann) 879b390 Increase default dbcache to 100 MiB (Pieter Wuille)
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
{