Anton Kaliaev 7 years ago
parent
commit
b0a55882b2
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      blockchain/pool.go

+ 4
- 1
blockchain/pool.go View File

@ -35,7 +35,10 @@ const (
// Minimum recv rate to ensure we're receiving blocks from a peer fast // Minimum recv rate to ensure we're receiving blocks from a peer fast
// enough. If a peer is not sending us data at at least that rate, we // enough. If a peer is not sending us data at at least that rate, we
// consider them to have timedout and we disconnect. // consider them to have timedout and we disconnect.
minRecvRate = 10240 // 10 KB/s
//
// Assuming a DSL connection (not a good choice) 128 Kbps (upload) ~ 15 KB/s,
// sending data across atlantic ~ 7.5 KB/s.
minRecvRate = 7680
) )
var peerTimeoutSeconds = time.Duration(15) // not const so we can override with tests var peerTimeoutSeconds = time.Duration(15) // not const so we can override with tests


Loading…
Cancel
Save