diff --git a/narwhal/consensus/src/consensus.rs b/narwhal/consensus/src/consensus.rs index 918202be1349b..c7131993b1625 100644 --- a/narwhal/consensus/src/consensus.rs +++ b/narwhal/consensus/src/consensus.rs @@ -91,7 +91,7 @@ impl ConsensusState { gc_depth: Round, ) -> Dag { let mut dag: Dag = HashMap::new(); - let min_round = last_committed_round - gc_depth; + let min_round = last_committed_round.saturating_sub(gc_depth); let cert_map = cert_store .iter(Some(Box::new(move |(_dig, cert)| { cert.header.round > min_round