aboutsummaryrefslogtreecommitdiff
path: root/p2p/src/config.rs
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-05-22 18:23:14 +0200
committerhozan23 <hozan23@karyontech.net>2024-05-22 18:23:14 +0200
commitcc1d61c401e52ba3b6cd264c5400fb7ab52522dc (patch)
treef427aca981dbc9e526d4dec54971b44016b542cd /p2p/src/config.rs
parent5df6812dd2254b871eb773dc626b89646ca87495 (diff)
p2p: add enable_monitor field to Config
Diffstat (limited to 'p2p/src/config.rs')
-rw-r--r--p2p/src/config.rs5
1 files changed, 5 insertions, 0 deletions
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,