Slight increase of retry on block download before give up

This commit is contained in:
Ignotus Peverell
2017-11-01 22:52:10 -04:00
parent dbaba8aed5
commit 8ded5e23cf
+1 -1
View File
@@ -168,7 +168,7 @@ impl Syncer {
let now = Instant::now();
for download in blocks_downloading.deref_mut() {
let elapsed = (now - download.start_time).as_secs();
if download.retries >= 8 {
if download.retries >= 12 {
panic!("Failed to download required block {}", download.hash);
}
if download.retries < (elapsed / 5) as u8 {