File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
batcher/aligned-batcher/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments