diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 19c52baf81..e5733e98fc 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -47,10 +47,10 @@ var ( MaxForkAncestry = 3 * params.EpochDuration // Maximum chain reorganisation rttMinEstimate = 2 * time.Second // Minimum round-trip time to target for download requests - rttMaxEstimate = 20 * time.Second // Maximum rount-trip time to target for download requests + rttMaxEstimate = 5 * time.Second // Maximum rount-trip time to target for download requests rttMinConfidence = 0.1 // Worse confidence factor in our estimated RTT value - ttlScaling = 3 // Constant scaling factor for RTT -> TTL conversion - ttlLimit = time.Minute // Maximum TTL allowance to prevent reaching crazy timeouts + ttlScaling = 2 // Constant scaling factor for RTT -> TTL conversion + ttlLimit = 5 * time.Second // Maximum TTL allowance to prevent reaching crazy timeouts qosTuningPeers = 5 // Number of peers to tune based on (best peers) qosConfidenceCap = 10 // Number of peers above which not to modify RTT confidence