eth/fetcher: modify queue limits for improving sync near chain tip (#1260)

This commit is contained in:
Manav Darji 2024-06-07 21:57:19 +05:30 committed by GitHub
parent 57b77e3b6c
commit 6bc8334852
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 (