From babbb620f4d22a61379d8cb6ccc08629b177505b Mon Sep 17 00:00:00 2001 From: rene <41963722+renaynay@users.noreply.github.com> Date: Fri, 15 Mar 2024 15:03:19 +0100 Subject: [PATCH] fix(pruner): Reduce maxHeadersPerLoop to 512 --- pruner/finder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pruner/finder.go b/pruner/finder.go index 187537a981..4b8cb2c79e 100644 --- a/pruner/finder.go +++ b/pruner/finder.go @@ -10,7 +10,7 @@ import ( // maxHeadersPerLoop is the maximum number of headers to fetch // for a prune loop (prevents fetching too many headers at a // time for nodes that have a large number of pruneable headers). -var maxHeadersPerLoop = uint64(1024) +var maxHeadersPerLoop = uint64(512) // findPruneableHeaders returns all headers that are eligible for pruning // (outside the sampling window).