Merge dbcache_1TB-0.13

This commit is contained in:
Luke Dashjr 2024-06-21 19:28:12 +00:00
commit 04fd19614a

View File

@ -26,7 +26,7 @@ static const int64_t nDefaultDbCache = 450;
//! -dbbatchsize default (bytes) //! -dbbatchsize default (bytes)
static const int64_t nDefaultDbBatchSize = 16 << 20; static const int64_t nDefaultDbBatchSize = 16 << 20;
//! max. -dbcache (MiB) //! max. -dbcache (MiB)
static const int64_t nMaxDbCache = sizeof(void*) > 4 ? 16384 : 1024; static constexpr int64_t nMaxDbCache = sizeof(void*) > 4 ? 1048576 : 1024;
//! min. -dbcache (MiB) //! min. -dbcache (MiB)
static const int64_t nMinDbCache = 4; static const int64_t nMinDbCache = 4;
//! Max memory allocated to block tree DB specific cache, if no -txindex (MiB) //! Max memory allocated to block tree DB specific cache, if no -txindex (MiB)