Networking and syncing tweaks (#2990)

* Reduce periodic snapshot delay

* Prevent connecting to peers over the min_peers limit

* Smaller block requests for slower connections
This commit is contained in:
Arkadiy Paronyan
2016-10-30 15:39:36 +01:00
committed by Gav Wood
parent d3a2f7dce9
commit 6931878ff1
3 changed files with 25 additions and 23 deletions

View File

@@ -29,7 +29,7 @@ use sync_io::SyncIo;
use blocks::BlockCollection;
const MAX_HEADERS_TO_REQUEST: usize = 128;
const MAX_BODIES_TO_REQUEST: usize = 128;
const MAX_BODIES_TO_REQUEST: usize = 64;
const MAX_RECEPITS_TO_REQUEST: usize = 128;
const SUBCHAIN_SIZE: u64 = 256;
const MAX_ROUND_PARENTS: usize = 32;