Skip to content

Commit

Permalink
eth/fetcher: modify queue limits for improving sync near chain tip (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
manav2401 committed Jun 7, 2024
1 parent 57b77e3 commit 6bc8334
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions eth/fetcher/block_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,15 @@ const (
)

const (
maxUncleDist = 7 // Maximum allowed backward distance from the chain head
maxQueueDist = 32 // Maximum allowed distance from the chain head to queue
hashLimit = 256 // Maximum number of unique blocks or headers a peer may have announced
blockLimit = 64 // Maximum number of unique blocks a peer may have delivered
maxUncleDist = 7 // Maximum allowed backward distance from the chain head

// maxQueueDist is increased for bor to allow storing more block announcements
// near chain tip
maxQueueDist = 32 * 6 // Maximum allowed distance from the chain head to queue
hashLimit = 256 // Maximum number of unique blocks or headers a peer may have announced

// blockLimit is increased for bor to allow storing more unique blocks near chain tip
blockLimit = 64 * 3 // Maximum number of unique blocks a peer may have delivered
)

var (
Expand Down

0 comments on commit 6bc8334

Please sign in to comment.