Skip to content

Commit d4b0c86

Browse files
committed
Fix queue len
1 parent c02e861 commit d4b0c86

File tree

1 file changed

+5
-2
lines changed
  • batcher/aligned-batcher/src

1 file changed

+5
-2
lines changed

batcher/aligned-batcher/src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,8 +1052,7 @@ impl Batcher {
10521052

10531053
info!("ME llega max_fee {}", max_fee);
10541054

1055-
let batch_queue_len = batch_state_lock.batch_queue.len();
1056-
1055+
10571056
let new_entry = BatchQueueEntry::new(
10581057
verification_data,
10591058
verification_data_comm,
@@ -1067,6 +1066,10 @@ impl Batcher {
10671066
.batch_queue
10681067
.push(new_entry, new_entry_priority);
10691068

1069+
1070+
let batch_queue_len = batch_state_lock.batch_queue.len();
1071+
1072+
10701073
// if max batch qty exceded, remove least priority proof
10711074
if batch_queue_len > self.max_batch_proof_qty {
10721075
if let Some(lowest_priority_entry) = batch_state_lock.batch_queue.pop_min() {

0 commit comments

Comments
 (0)