Skip to content

Commit

Permalink
Increase the number of cache blocks downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
niuxiaojie81 committed Oct 30, 2023
1 parent df8cb5a commit 1ebc677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eth/downloader/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const (
)

var (
blockCacheMaxItems = 128 // Maximum number of blocks to cache before throttling the download
blockCacheInitialItems = 128 // Initial number of blocks to start fetching, before we know the sizes of the blocks
blockCacheMaxItems = 1024 // Maximum number of blocks to cache before throttling the download
blockCacheInitialItems = 256 // 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
blockCacheSizeWeight = 0.1 // Multiplier to approximate the average block size based on past ones
)
Expand Down

0 comments on commit 1ebc677

Please sign in to comment.