Added a failsafe mechanism, that will restart all swarm connections if network is stale.

This commit is contained in:
Revertron
2021-04-26 23:18:00 +02:00
parent fcb920e0de
commit 5afd9906b3
3 changed files with 15 additions and 2 deletions
+1
View File
@@ -45,4 +45,5 @@ pub const LOG_REFRESH_DELAY_SEC: u64 = 60;
pub const POLL_TIMEOUT: Option<Duration> = Some(Duration::from_millis(250));
pub const MAX_PACKET_SIZE: usize = 1 * 1024 * 1024; // 1 Mb
pub const MAX_READ_BLOCK_TIME: u128 = 500;
pub const MAX_IDLE_SECONDS: u64 = 180;
pub const MAX_NODES: usize = 15;