Skip to content

Commit

Permalink
Fix bug in try_build_batch
Browse files Browse the repository at this point in the history
  • Loading branch information
entropidelic committed Sep 21, 2024
1 parent 9dc2b55 commit ce25445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions batcher/aligned-batcher/src/types/batch_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ pub(crate) fn try_build_batch(
break;
}

// If `resulting_priority_queue` is empty, this means that all the batch queue was traversed and we didn't find
// If `batch_queue_copy` is empty, this means that all the batch queue was traversed and we didn't find
// any user willing to pay fot the fee per proof.
if resulting_priority_queue.is_empty() {
if batch_queue_copy.is_empty() {
return Err(BatcherError::BatchCostTooHigh);
}

Expand Down

0 comments on commit ce25445

Please sign in to comment.