mirror of https://github.com/voidlizard/hbs2
download tuned for low MTU values, needs investigation
This commit is contained in:
parent
6eb63e9cce
commit
954b2266ab
|
@ -16,11 +16,11 @@ defBurstMax :: Integral a => a
|
|||
defBurstMax = 128
|
||||
|
||||
defBurst :: Integral a => a
|
||||
defBurst = defBurstMax `div` 8
|
||||
defBurst = defBurstMax `div` 4
|
||||
|
||||
-- defChunkSize :: Integer
|
||||
defChunkSize :: Integral a => a
|
||||
defChunkSize = 1400
|
||||
defChunkSize = 1024
|
||||
-- defChunkSize = 480
|
||||
|
||||
defBlockSize :: Integer
|
||||
|
@ -36,7 +36,7 @@ defBlockDownloadQ :: Integral a => a
|
|||
defBlockDownloadQ = 65536*10
|
||||
|
||||
defBlockDownloadThreshold :: Integral a => a
|
||||
defBlockDownloadThreshold = 2
|
||||
defBlockDownloadThreshold = 1
|
||||
|
||||
-- typical block hash 530+ chunks * parallel wip blocks amount
|
||||
defProtoPipelineSize :: Int
|
||||
|
|
|
@ -665,8 +665,8 @@ blockDownloadLoop env0 = do
|
|||
updateRates e rates nonces = withPeerM e do
|
||||
|
||||
let wRtt = 5
|
||||
let wUdp = 1.75
|
||||
let wTcp = 1.0
|
||||
let wUdp = 1.5
|
||||
let wTcp = 1.1
|
||||
let wS = 1.5
|
||||
let eps = 1e-8
|
||||
|
||||
|
|
Loading…
Reference in New Issue