Skip to content

Commit

Permalink
set max_header_delay to 5s (MystenLabs#2787)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkuo authored Jun 28, 2022
1 parent a285e4d commit eccef17
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/sui-config/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ use crate::{
};
use arc_swap::ArcSwap;
use debug_ignore::DebugIgnore;
use narwhal_config::{Authority, PrimaryAddresses, Stake, WorkerAddresses};
use narwhal_config::{Authority, Parameters, PrimaryAddresses, Stake, WorkerAddresses};
use rand::rngs::OsRng;
use std::time::Duration;
use std::{
collections::BTreeMap,
num::NonZeroUsize,
Expand Down Expand Up @@ -180,7 +181,10 @@ impl<R: ::rand::RngCore + ::rand::CryptoRng> ConfigBuilder<R> {
let consensus_config = ConsensusConfig {
consensus_address,
consensus_db_path,
narwhal_config: Default::default(),
narwhal_config: Parameters {
max_header_delay: Duration::from_secs(5),
..Default::default()
},
narwhal_committee: narwhal_committee.clone(),
};

Expand Down

0 comments on commit eccef17

Please sign in to comment.