From cc1d61c401e52ba3b6cd264c5400fb7ab52522dc Mon Sep 17 00:00:00 2001 From: hozan23 Date: Wed, 22 May 2024 18:23:14 +0200 Subject: p2p: add enable_monitor field to Config --- p2p/src/config.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'p2p/src/config.rs') diff --git a/p2p/src/config.rs b/p2p/src/config.rs index fffbebd..4f6554d 100644 --- a/p2p/src/config.rs +++ b/p2p/src/config.rs @@ -7,6 +7,9 @@ pub struct Config { /// Represents the network version. pub version: Version, + /// Enable monitor + pub enable_monitor: bool, + ///////////////// // PeerPool //////////////// @@ -81,6 +84,8 @@ impl Default for Config { Config { version: "0.1.0".parse().unwrap(), + enable_monitor: false, + handshake_timeout: 2, ping_interval: 20, ping_timeout: 2, -- cgit v1.2.3