diff --git a/node/bft/src/bft.rs b/node/bft/src/bft.rs index 2157dce6d7..0ca528f96f 100644 --- a/node/bft/src/bft.rs +++ b/node/bft/src/bft.rs @@ -624,8 +624,10 @@ impl BFT { } } - // Perform garbage collection based on the latest committed leader round. - self.storage().garbage_collect_certificates(latest_leader_round); + // Perform garbage collection based on the latest committed leader round if the node is not syncing. + if !IS_SYNCING { + self.storage().garbage_collect_certificates(latest_leader_round); + } Ok(()) }