From 965727c5d339adcf51145ec4429e09eb901a934c Mon Sep 17 00:00:00 2001 From: Arkadiy Paronyan Date: Tue, 3 Oct 2017 10:06:42 +0200 Subject: [PATCH] Tweaked block download timeouts (#6595) --- sync/src/block_sync.rs | 2 +- sync/src/chain.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sync/src/block_sync.rs b/sync/src/block_sync.rs index e7192d525..b5e15fcf8 100644 --- a/sync/src/block_sync.rs +++ b/sync/src/block_sync.rs @@ -29,7 +29,7 @@ use sync_io::SyncIo; use blocks::BlockCollection; const MAX_HEADERS_TO_REQUEST: usize = 128; -const MAX_BODIES_TO_REQUEST: usize = 64; +const MAX_BODIES_TO_REQUEST: usize = 32; const MAX_RECEPITS_TO_REQUEST: usize = 128; const SUBCHAIN_SIZE: u64 = 256; const MAX_ROUND_PARENTS: usize = 16; diff --git a/sync/src/chain.rs b/sync/src/chain.rs index f0c26306e..a143bf03b 100644 --- a/sync/src/chain.rs +++ b/sync/src/chain.rs @@ -163,7 +163,7 @@ const MAX_SNAPSHOT_CHUNKS_DOWNLOAD_AHEAD: usize = 3; const WAIT_PEERS_TIMEOUT_SEC: u64 = 5; const STATUS_TIMEOUT_SEC: u64 = 5; const HEADERS_TIMEOUT_SEC: u64 = 15; -const BODIES_TIMEOUT_SEC: u64 = 10; +const BODIES_TIMEOUT_SEC: u64 = 20; const RECEIPTS_TIMEOUT_SEC: u64 = 10; const FORK_HEADER_TIMEOUT_SEC: u64 = 3; const SNAPSHOT_MANIFEST_TIMEOUT_SEC: u64 = 5;