From 04c6ba58e09c4cd5ac6ec815afeabffefacb1ae5 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Tue, 5 Sep 2023 21:56:19 +0000 Subject: [PATCH] txdb: Increase max dbcache size to 1 TB --- src/txdb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/txdb.h b/src/txdb.h index 5b98d2792c..e3ebec960f 100644 --- a/src/txdb.h +++ b/src/txdb.h @@ -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)