mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-12 06:53:46 +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 (
|
const (
|
||||||
maxUncleDist = 7 // Maximum allowed backward distance from the chain head
|
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
|
// maxQueueDist is increased for bor to allow storing more block announcements
|
||||||
blockLimit = 64 // Maximum number of unique blocks a peer may have delivered
|
// 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 (
|
var (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue