diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-02-18 08:35:19 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-02-18 08:35:45 +0100 |
commit | bd8e3751d7cec48428283d29682db7b80474f2ca (patch) | |
tree | 7d90efc9dc0241fadb3d0946f4d0786c29584c76 /src/txdb.h | |
parent | 0a0cf1433769e495839c5695f388b277b9ff2dfa (diff) | |
parent | 82e96006ae03a7debebb9ad36f939ddabb0d2f9f (diff) | |
download | bitcoin-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.h | 7 |
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 { |