Removed tight restrictions of blocks sync. Sped up initial sync a lot.

This commit is contained in:
Revertron
2021-10-08 09:15:12 +02:00
parent d502b6c890
commit 66242464c4
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -40,8 +40,8 @@ pub const UI_REFRESH_DELAY_MS: u128 = 500;
pub const LOG_REFRESH_DELAY_SEC: u64 = 60;
pub const POLL_TIMEOUT: Option<Duration> = Some(Duration::from_millis(500));
/// We start syncing blocks only when we got 8 and more connected nodes
pub const MIN_CONNECTED_NODES_START_SYNC: usize = 8;
/// We start syncing blocks only when we got 4 and more connected nodes
pub const MIN_CONNECTED_NODES_START_SYNC: usize = 4;
pub const MAX_RECONNECTS: u32 = 5;
pub const MAX_IDLE_SECONDS: u64 = 180;
pub const MAX_NODES: usize = 15;