Resilient warp sync (#5018)

This commit is contained in:
Arkadiy Paronyan
2017-03-24 18:55:57 +01:00
committed by Gav Wood
parent 9efab789aa
commit 3b54b49b0b
3 changed files with 26 additions and 16 deletions

View File

@@ -35,8 +35,8 @@ use stats::NetworkStats;
use time;
// Timeout must be less than (interval - 1).
const PING_TIMEOUT_SEC: u64 = 15;
const PING_INTERVAL_SEC: u64 = 30;
const PING_TIMEOUT_SEC: u64 = 60;
const PING_INTERVAL_SEC: u64 = 120;
#[derive(Debug, Clone)]
enum ProtocolState {