From d04521477800c6f97bde4dffe54914d059d9c83e Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Mon, 31 Mar 2025 18:18:54 +0200 Subject: [PATCH] adjust max block cache mem from 256mb -> 512 mb. choose 32 blocks as the initial fetch size --- 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 c0e1a4145d..2478e4da76 100644 --- a/eth/downloader/queue.go +++ b/eth/downloader/queue.go @@ -43,8 +43,8 @@ const ( var ( blockCacheMaxItems = 8192 // Maximum number of blocks to cache before throttling the download - blockCacheInitialItems = 16 // Initial number of blocks to start fetching, before we know the sizes of the blocks - blockCacheMemory = 256 * 1024 * 1024 // Maximum amount of memory to use for block caching + blockCacheInitialItems = 32 // Initial number of blocks to start fetching, before we know the sizes of the blocks + blockCacheMemory = 512 * 1024 * 1024 // Maximum amount of memory to use for block caching ) var (