Skip to content

Commit

Permalink
chore: document update_user_proofs_in_batch_and_min_fee
Browse files Browse the repository at this point in the history
  • Loading branch information
taturosati committed Sep 3, 2024
1 parent 411dad2 commit 9d72137
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions batcher/aligned-batcher/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ impl BatchState {
None
}

/// Updates:
/// * The user proof count in batch
/// * The user min fee pending in batch (which is the one with the highest nonce)
/// based on whats currenlty in the batch queue.
/// This is necessary because the whole batch may not be included in the finalized batch,
/// This caches are needed to validate user messages.
fn update_user_proofs_in_batch_and_min_fee(&mut self) {
let mut updated_user_min_fee = HashMap::new();
let mut updated_user_proof_count_in_batch = HashMap::new();
Expand Down

0 comments on commit 9d72137

Please sign in to comment.