Skip to content

Commit

Permalink
txdb: Increase max dbcache size to 1 TB
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Sep 5, 2023
1 parent e4382fb commit 04c6ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/txdb.h
Expand Up @@ -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)
Expand Down

0 comments on commit 04c6ba5

Please sign in to comment.