File tree Expand file tree Collapse file tree
crates/payload/builder/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ use std::{
33 thread,
44} ;
55
6- use reth_transaction_pool:: { BestTransactions , error:: InvalidPoolTransactionError } ;
6+ use reth_transaction_pool:: {
7+ BestTransactions , PoolTransaction , error:: InvalidPoolTransactionError ,
8+ } ;
79use tempo_transaction_pool:: best:: BestTransaction ;
810
911/// Event returned by [`BestTransactionsStream`].
@@ -158,18 +160,12 @@ fn is_invalidated_buffered_transaction(
158160 }
159161
160162 if invalid. transaction . is_aa_2d ( ) {
161- let Some ( invalid_id) = invalid. transaction . aa_transaction_id ( ) else {
162- return false ;
163- } ;
164- return candidate
163+ candidate
165164 . transaction
166165 . aa_transaction_id ( )
167- . is_some_and ( |candidate_id| {
168- candidate_id. seq_id == invalid_id. seq_id && candidate_id. nonce >= invalid_id. nonce
169- } ) ;
166+ . zip ( invalid. transaction . aa_transaction_id ( ) )
167+ . is_some_and ( |( candidate_id, invalid_id) | candidate_id. seq_id == invalid_id. seq_id )
168+ } else {
169+ candidate. transaction . sender ( ) == invalid. transaction . sender ( )
170170 }
171-
172- !candidate. transaction . is_aa_2d ( )
173- && candidate. sender ( ) == invalid. sender ( )
174- && candidate. nonce ( ) >= invalid. nonce ( )
175171}
You can’t perform that action at this time.
0 commit comments