Skip to content

Commit

Permalink
Do not gc during bootup
Browse files Browse the repository at this point in the history
  • Loading branch information
raychu86 committed Mar 3, 2024
1 parent c6ab661 commit 3e6c2a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions node/bft/src/bft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,10 @@ impl<N: Network> BFT<N> {
}
}

// 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(())
}
Expand Down

0 comments on commit 3e6c2a5

Please sign in to comment.