From caa52719b2901ed88449136b9c8aeb6efd0088a4 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Fri, 25 Apr 2025 15:49:53 +0800 Subject: [PATCH] fix build --- eth/downloader/queue.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go index c254c9eeef..cd6da0da64 100644 --- a/eth/downloader/queue.go +++ b/eth/downloader/queue.go @@ -42,10 +42,10 @@ const ( ) var ( - blockCacheMaxItems = 32768 // Maximum number of blocks to cache before throttling the download - blockCacheInitialItems = blockCacheMemory / (10 * 1024 * 1024) // Initial number of blocks to start fetching, before we know the sizes of the blocks - blockCacheSizeWeight = 0.1 // Multiplier to approximate the average block size based on past ones - blockCacheMemory uint64 = 2 * 1024 * 1024 * 1024 // Maximum amount of memory to use for block caching + blockCacheMaxItems = 32768 // Maximum number of blocks to cache before throttling the download + blockCacheInitialItems = int(blockCacheMemory) / (10 * 1024 * 1024) // Initial number of blocks to start fetching, before we know the sizes of the blocks + blockCacheSizeWeight = 0.1 // Multiplier to approximate the average block size based on past ones + blockCacheMemory uint64 = 2 * 1024 * 1024 * 1024 // Maximum amount of memory to use for block caching ) var (