Optimized initial blocks sync.

This commit is contained in:
Revertron
2021-06-05 01:07:26 +02:00
parent bb1f1acce5
commit e82f0ee9b1
6 changed files with 77 additions and 32 deletions
+2
View File
@@ -40,6 +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(250));
/// We start syncing blocks only when we got 8 and more connected nodes
pub const MIN_CONNECTED_NODES_START_SYNC: usize = 8;
pub const MAX_RECONNECTS: u32 = 5;
pub const MAX_IDLE_SECONDS: u64 = 180;
pub const MAX_NODES: usize = 15;