• Suhas Daftuar's avatar
    Reduce download timeouts as blocks arrive · afa8e24b
    Suhas Daftuar authored
    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.
    afa8e24b
main.cpp 225 KB