Skip to content

Commit

Permalink
Merge pull request #3144 from AleoHQ/fix/no-gc-on-bootup
Browse files Browse the repository at this point in the history
[ZKS-04] Do not perform GC on bootup
  • Loading branch information
howardwu committed Mar 4, 2024
2 parents 6e8c6d2 + 3e6c2a5 commit 82f7518
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions node/bft/src/bft.rs
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 82f7518

Please sign in to comment.