Skip to content

Commit 5d5e542

Browse files
committed
refactor: comment
1 parent 7e660ad commit 5d5e542

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

batcher/aligned-batcher/src/connection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ pub(crate) async fn send_batch_inclusion_data_responses(
2121
finalized_batch: Vec<BatchQueueEntry>,
2222
batch_merkle_tree: &MerkleTree<VerificationCommitmentBatch>,
2323
) -> Result<(), BatcherError> {
24-
// iter in reverse because each sender wants to receive responses in ascending nonce order
25-
// and finalized_batch is ordered as the PriorityQueue , low max_fee first && high nonce first.
24+
// Finalized_batch is ordered as the PriorityQueue, ordered by: ascending max_fee && if max_fee is equal, by descending nonce.
25+
// We iter it in reverse because each sender wants to receive responses in ascending nonce order
2626
for (vd_batch_idx, entry) in finalized_batch.iter().enumerate().rev() {
2727
let batch_inclusion_data = BatchInclusionData::new(
2828
vd_batch_idx,

0 commit comments

Comments
 (0)