From 1790ad77435b240c742de001d101cffaf18fa2f4 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Tue, 22 Apr 2025 16:25:43 +0800 Subject: [PATCH] fix --- eth/downloader/queue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go index f11e02f806..0e31ab50a5 100644 --- a/eth/downloader/queue.go +++ b/eth/downloader/queue.go @@ -41,7 +41,7 @@ const ( ) var ( - blockCacheMaxItems = 8192 * 4 // Maximum number of blocks to cache before throttling the download + blockCacheMaxItems = 32768 // Maximum number of blocks to cache before throttling the download blockCacheInitialItems = 2048 // Initial number of blocks to start fetching, before we know the sizes of the blocks blockCacheMemory = 2 * 1024 * 1024 * 1024 // Maximum amount of memory to use for block caching blockCacheSizeWeight = 0.1 // Multiplier to approximate the average block size based on past ones