aboutsummaryrefslogtreecommitdiff
path: root/src/sync.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2016-04-03 15:24:09 +0200
committerPieter Wuille <[email protected]>2016-04-07 12:13:10 +0200
commit2d1d6581eca4508838cd339cc19c72efc42d6ea0 (patch)
tree7bf5a9c7f6094f513eb3d475e83a9ab7439f0302 /src/sync.cpp
parentMerge #7802: [qa] httpbasics: Actually test second connection (diff)
downloaddiscoin-2d1d6581eca4508838cd339cc19c72efc42d6ea0.tar.xz
discoin-2d1d6581eca4508838cd339cc19c72efc42d6ea0.zip
Track block download times per individual block
Currently, we're keeping a timeout for each requested block, starting from when it is requested, with a correction factor for the number of blocks in the queue. That's unnecessarily complicated and inaccurate. As peers process block requests in order, we can make the timeout for each block start counting only when all previous ones have been received, and have a correction based on the number of peers, rather than the total number of blocks.
Diffstat (limited to 'src/sync.cpp')
0 files changed, 0 insertions, 0 deletions