diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2015-04-06 13:10:33 -0400 |
---|---|---|
committer | Suhas Daftuar <sdaftuar@gmail.com> | 2015-04-15 09:28:00 -0400 |
commit | 8ba7f842e5a00e43167e53b456c6d8732b8861c5 (patch) | |
tree | 5ba0e47133fe754319c2a3a5e5844cf17d967fcc /src/streams.h | |
parent | ea2b425b00b01b5b6670fa39488caf146dac4642 (diff) |
Reduce download timeouts as blocks arrive
Compare the block download timeout to what the timeout would be if calculated
based on current time and current value of nQueuedValidatedHeaders, but
ignoring other in-flight blocks from the same peer. If the calculation based on
present conditions is shorter, then set that to be the time after which we
disconnect the peer for not delivering this block.
Diffstat (limited to 'src/streams.h')
0 files changed, 0 insertions, 0 deletions