File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
crates/optimism/txpool/src Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -401,19 +401,15 @@ where
401
401
& self ,
402
402
transactions : Vec < ( TransactionOrigin , Self :: Transaction ) > ,
403
403
) -> Vec < TransactionValidationOutcome < Self :: Transaction > > {
404
- future:: join_all ( transactions. into_iter ( ) . map ( |( origin, tx) | self . validate_one ( origin, tx) ) )
405
- . await
404
+ self . validate_all ( transactions) . await
406
405
}
407
406
408
407
async fn validate_transactions_with_origin (
409
408
& self ,
410
409
origin : TransactionOrigin ,
411
410
transactions : impl IntoIterator < Item = Self :: Transaction > + Send ,
412
411
) -> Vec < TransactionValidationOutcome < Self :: Transaction > > {
413
- futures_util:: future:: join_all (
414
- transactions. into_iter ( ) . map ( |tx| self . validate_one ( origin, tx) ) ,
415
- )
416
- . await
412
+ self . validate_all ( transactions. into_iter ( ) . map ( |tx| ( origin, tx) ) . collect ( ) ) . await
417
413
}
418
414
419
415
fn on_new_head_block < B > ( & self , new_tip_block : & SealedBlock < B > )
You can’t perform that action at this time.
0 commit comments