Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions patches/heartbeat-boot.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ diff --git a/node/router/src/heartbeat.rs b/node/router/src/heartbeat.rs
--- a/node/router/src/heartbeat.rs
+++ b/node/router/src/heartbeat.rs
@@ -39,13 +39,13 @@ pub trait Heartbeat<N: Network>: Outbound<N> {
/// The duration in seconds to sleep in between heartbeat executions.
const HEARTBEAT_IN_SECS: u64 = 25; // 25 seconds
/// The minimum number of peers required to maintain connections with.
- const MINIMUM_NUMBER_OF_PEERS: usize = 3;
+ const MINIMUM_NUMBER_OF_PEERS: usize = 4;
/// The minimum time between connection attempts to a peer.
const MINIMUM_TIME_BETWEEN_CONNECTION_ATTEMPTS: Duration = Duration::from_secs(10);
/// The time we consider the node to be starting up and avoid certain warnings such as "No connected peers".
const STARTUP_GRACE_PERIOD: Duration = Duration::from_secs(60);
/// The median number of peers to maintain connections with.
const MEDIAN_NUMBER_OF_PEERS: usize = max(Self::MAXIMUM_NUMBER_OF_PEERS / 2, Self::MINIMUM_NUMBER_OF_PEERS);
/// The maximum number of peers permitted to maintain connections with.
Expand All @@ -18,4 +20,3 @@ diff --git a/node/router/src/heartbeat.rs b/node/router/src/heartbeat.rs
/// The amount of time an IP address is prohibited from connecting.
- const IP_BAN_TIME_IN_SECS: u64 = 300;
+ const IP_BAN_TIME_IN_SECS: u64 = 600;

Loading