Optimized p2p connections.

Added a limit for 10 active connections to save bandwidth and CPU.
This commit is contained in:
Revertron
2021-04-23 13:20:26 +02:00
parent 0d944ca1dc
commit 520f485899
7 changed files with 26 additions and 22 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
pub enum Event {
MinerStarted,
MinerStopped { success: bool, full: bool },
MinerStats { thread: usize, speed: u64, max_diff: u32, aim_diff: u32 },
MinerStats { thread: usize, speed: u64, max_diff: u32, target_diff: u32 },
KeyGeneratorStarted,
KeyGeneratorStopped,
KeyCreated { path: String, public: String, hash: String },