txdb: Increase max dbcache size to 1 TB

This commit is contained in:
Luke Dashjr 2023-09-05 21:56:19 +00:00
parent e4382fbef5
commit 04c6ba58e0

View File

@ -24,7 +24,7 @@ class uint256;
//! -dbcache default (MiB)
static const int64_t nDefaultDbCache = 300;
//! 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)
static const int64_t nMinDbCache = 4;
//! Max memory allocated to block tree DB specific cache, if no -txindex (MiB)