Skip to content

Commit

Permalink
scale the cache change down a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
BrannonKing committed Apr 16, 2021
1 parent db7e0b5 commit 7afc4c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/txdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct CDiskTxPos;
//! No need to periodic flush if at least this much space still available.
static constexpr int MAX_BLOCK_COINSDB_USAGE = 10;
//! -dbcache default (MiB)
static const int64_t nDefaultDbCache = 640;
static const int64_t nDefaultDbCache = 560;
//! -dbbatchsize default (bytes)
static const int64_t nDefaultDbBatchSize = 16 << 20;
//! max. -dbcache (MiB)
Expand All @@ -40,7 +40,7 @@ static const int64_t nMaxBlockDBCache = 16;
// a meaningful difference: https://github.com/bitcoin/bitcoin/pull/8273#issuecomment-229601991
static const int64_t nMaxTxIndexCache = 1024;
//! Max memory allocated to coin DB specific cache (MiB)
static const int64_t nMaxCoinsDBCache = 128;
static const int64_t nMaxCoinsDBCache = 32;

/** CCoinsView backed by the coin database (chainstate/) */
class CCoinsViewDB final : public CCoinsView
Expand Down

0 comments on commit 7afc4c4

Please sign in to comment.