Skip to content

Commit

Permalink
for instant sync, reduced fetcher.arriveTimeout and fetcher.gatherSla…
Browse files Browse the repository at this point in the history
…ck to 0
  • Loading branch information
sadoci committed Oct 2, 2019
1 parent a038d3d commit c7e91a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eth/fetcher/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
)

const (
arriveTimeout = 5000 * time.Millisecond // Time allowance before an announced block is explicitly requested
gatherSlack = 1000 * time.Millisecond // Interval used to collate almost-expired announces with fetches
arriveTimeout = 0 * time.Millisecond // Time allowance before an announced block is explicitly requested
gatherSlack = 0 * time.Millisecond // Interval used to collate almost-expired announces with fetches
fetchTimeout = 120 * time.Second // Maximum allotted time to return an explicitly requested block
maxUncleDist = 700 // Maximum allowed backward distance from the chain head
maxQueueDist = 3200 // Maximum allowed distance from the chain head to queue
Expand Down

0 comments on commit c7e91a1

Please sign in to comment.