Skip to content

Commit

Permalink
Reduce frequency of calls to calculate remaining txns in proof queue (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vusirikala authored Sep 9, 2024
1 parent bc6fbd7 commit 862cc33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions consensus/src/quorum_store/proof_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ impl ProofManager {
batch_summaries: Vec<(BatchInfo, Vec<TxnSummaryWithExpiration>)>,
) {
self.batch_proof_queue.insert_batches(batch_summaries);
(self.remaining_total_txn_num, self.remaining_total_proof_num) =
self.batch_proof_queue.remaining_txns_and_proofs();
self.update_remaining_txns_and_proofs();
}

pub(crate) fn handle_commit_notification(
Expand Down

0 comments on commit 862cc33

Please sign in to comment.