Skip to content

Commit 04c6ba5

Browse files
committed
txdb: Increase max dbcache size to 1 TB
1 parent e4382fb commit 04c6ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/txdb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class uint256;
2424
//! -dbcache default (MiB)
2525
static const int64_t nDefaultDbCache = 300;
2626
//! max. -dbcache (MiB)
27-
static const int64_t nMaxDbCache = sizeof(void*) > 4 ? 16384 : 1024;
27+
static constexpr int64_t nMaxDbCache = sizeof(void*) > 4 ? 1048576 : 1024;
2828
//! min. -dbcache (MiB)
2929
static const int64_t nMinDbCache = 4;
3030
//! Max memory allocated to block tree DB specific cache, if no -txindex (MiB)

0 commit comments

Comments
 (0)