aboutsummaryrefslogtreecommitdiff
path: root/p2p/src/config.rs
diff options
context:
space:
mode:
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,