From 3393ae8f5db06b787d9725852d34c49b23495fec Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Thu, 17 Apr 2025 13:53:13 +0800 Subject: [PATCH] up block cache limit to 5gb as an experiment --- eth/downloader/queue.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go index bb588ff750..ecd4052cb5 100644 --- a/eth/downloader/queue.go +++ b/eth/downloader/queue.go @@ -42,8 +42,8 @@ const ( ) var ( - blockCacheMaxItems = 8192 // Maximum number of blocks to cache before throttling the download - blockCacheMemory = 1024 * 1024 * 1024 // Maximum amount of memory to use for block caching + blockCacheMaxItems = 8192 // Maximum number of blocks to cache before throttling the download + blockCacheMemory = 5 * 1024 * 1024 * 1024 // Maximum amount of memory to use for block caching ) var (