From 2775136afb458cdec94596c89cbc0801b23c2a7b Mon Sep 17 00:00:00 2001 From: jhaineault-aleo Date: Tue, 17 Mar 2026 16:12:11 -0700 Subject: [PATCH] Updated boot.patch bc it was failing on build --- patches/heartbeat-boot.patch | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/patches/heartbeat-boot.patch b/patches/heartbeat-boot.patch index 0352f1c..002ea70 100644 --- a/patches/heartbeat-boot.patch +++ b/patches/heartbeat-boot.patch @@ -1,17 +1,12 @@ diff --git a/node/router/src/heartbeat.rs b/node/router/src/heartbeat.rs -index a1ce8296a..fee3b7d73 100644 --- a/node/router/src/heartbeat.rs +++ b/node/router/src/heartbeat.rs -@@ -36,15 +36,15 @@ pub trait Heartbeat: Outbound { +@@ -39,13 +39,13 @@ pub trait Heartbeat: Outbound { /// The duration in seconds to sleep in between heartbeat executions. - const HEARTBEAT_INTERVAL: Duration = Duration::from_secs(25); + 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. @@ -22,4 +17,5 @@ index a1ce8296a..fee3b7d73 100644 + const MAXIMUM_NUMBER_OF_PROVERS: usize = Self::MAXIMUM_NUMBER_OF_PEERS / 10; /// 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; \ No newline at end of file ++ const IP_BAN_TIME_IN_SECS: u64 = 600; +