diff --git a/src/txdb.h b/src/txdb.h index c9af0a091e..bb8b73ed0c 100644 --- a/src/txdb.h +++ b/src/txdb.h @@ -26,7 +26,7 @@ static const int64_t nDefaultDbCache = 450; //! -dbbatchsize default (bytes) static const int64_t nDefaultDbBatchSize = 16 << 20; //! 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)