Skip to content

Commit cc7cc05

Browse files
committed
Add comments
1 parent 0e918af commit cc7cc05

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • batcher/aligned-batcher/src

batcher/aligned-batcher/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,10 @@ impl Batcher {
809809

810810
let new_proof_fee = nonced_verification_data.max_fee;
811811

812+
// We will keep the proof with the highest fee
813+
// Note: we previously checked that if it's a new proof from the same user the fee is the same or lower
814+
// So this will never eject a proof of the same user with a lower nonce
815+
// which is the expected behaviour
812816
if new_proof_fee > lowest_fee_in_queue {
813817

814818
// This cannot panic, if the batch queue is full it has at least one item

0 commit comments

Comments
 (0)