Skip to content

Commit

Permalink
Increase block sync broadcast cooldowns (#1283)
Browse files Browse the repository at this point in the history
# Description

Should make nodes send fewer block sync broadcasts without impacting
sync speed.

## Type of change

Co-authored-by: timorl <[email protected]>
  • Loading branch information
timorl and timorl authored Jul 10, 2023
1 parent 10cacea commit 69ab5a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions finality-aleph/src/sync/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ use crate::{
Metrics, SessionPeriod,
};

const BROADCAST_COOLDOWN: Duration = Duration::from_millis(200);
const BROADCAST_PERIOD: Duration = Duration::from_secs(1);
const BROADCAST_COOLDOWN: Duration = Duration::from_millis(600);
const BROADCAST_PERIOD: Duration = Duration::from_secs(5);
const FINALIZATION_STALL_CHECK_PERIOD: Duration = Duration::from_secs(30);

/// A service synchronizing the knowledge about the chain between the nodes.
Expand Down

0 comments on commit 69ab5a6

Please sign in to comment.