mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 23:56:43 +00:00
eth/fetcher: modify queue limits for improving sync near chain tip (#1260)
This commit is contained in:
parent
57b77e3b6c
commit
6bc8334852
1 changed files with 9 additions and 4 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in a new issue