Skip to content
Open
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions crates/node-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use std::{
fs,
net::{Ipv4Addr, SocketAddr, ToSocketAddrs},
path::Path,
time::Duration,
};

const DEFAULT_PPROF_PORT: u16 = 34001;
Expand All @@ -26,6 +27,10 @@ const DEFAULT_PPROF_PORT: u16 = 34001;
/// participants that are too far behind in the indexer height.
pub const MAX_INDEXER_HEIGHT_DIFF: u64 = 50;

/// How long a follower will wait, at the start of computation, for a
/// connection to each other participant in the round to be established before giving up.
pub const PARTICIPANT_CONNECTION_WAIT_TIMEOUT: Duration = Duration::from_secs(2);

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub struct TripleConfig {
pub concurrency: usize,
Expand Down
Loading