Skip to content

Commit

Permalink
fix(pruner): Reduce maxHeadersPerLoop to 512
Browse files Browse the repository at this point in the history
  • Loading branch information
renaynay committed Mar 15, 2024
1 parent d69a5cb commit babbb62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pruner/finder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit babbb62

Please sign in to comment.