Skip to content

Commit

Permalink
Update txdb.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ohcee authored Jul 12, 2024
1 parent f191c39 commit 236c949
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/txdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ const char DB_RCTKEYIMAGE = 'K';
//! 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 = 1024;
static const int64_t nDefaultDbCache = 2048;
//! -dbbatchsize default (bytes)
static const int64_t nDefaultDbBatchSize = 64 << 20;
static const int64_t nDefaultDbBatchSize = 128 << 20;
//! max. -dbcache (MiB)
static const int64_t nMaxDbCache = sizeof(void*) > 4 ? 32768 : 2048;
//! min. -dbcache (MiB)
Expand All @@ -46,7 +46,7 @@ static const int64_t nMaxBlockDBCache = 2;
// 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 = 32;
static const int64_t nMaxCoinsDBCache = 128;

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

0 comments on commit 236c949

Please sign in to comment.