@@ -444,10 +444,9 @@ mod tests {
444444 assert_eq ! ( * first. hash( ) , * r1. hash( ) ) ;
445445
446446 // Simulate payload builder marking R1 as invalid
447- merged. mark_invalid (
448- & first,
449- InvalidPoolTransactionError :: Consensus ( InvalidTransactionError :: TxTypeNotSupported ) ,
450- ) ;
447+ let kind =
448+ InvalidPoolTransactionError :: Consensus ( InvalidTransactionError :: TxTypeNotSupported ) ;
449+ merged. mark_invalid ( & first, kind) ;
451450
452451 // The AA2D descendant must be skipped, while protocol txs still yield.
453452 assert_eq ! ( merged. next( ) . map( |tx| * tx. hash( ) ) , Some ( * l1. hash( ) ) ) ;
@@ -469,10 +468,9 @@ mod tests {
469468 assert_eq ! ( * first. hash( ) , * r1. hash( ) ) ;
470469 assert_eq ! ( * second. hash( ) , * l1. hash( ) ) ;
471470
472- merged. mark_invalid (
473- & first,
474- InvalidPoolTransactionError :: Consensus ( InvalidTransactionError :: TxTypeNotSupported ) ,
475- ) ;
471+ let kind =
472+ InvalidPoolTransactionError :: Consensus ( InvalidTransactionError :: TxTypeNotSupported ) ;
473+ merged. mark_invalid ( & first, kind) ;
476474
477475 assert_eq ! ( merged. next( ) . map( |tx| * tx. hash( ) ) , Some ( * l2. hash( ) ) ) ;
478476 assert ! ( merged. next( ) . is_none( ) ) ;
@@ -495,10 +493,9 @@ mod tests {
495493 let first = merged. next ( ) . unwrap ( ) ;
496494 assert_eq ! ( * first. hash( ) , * left_tx. hash( ) ) ;
497495
498- merged. mark_invalid (
499- & first,
500- InvalidPoolTransactionError :: Consensus ( InvalidTransactionError :: TxTypeNotSupported ) ,
501- ) ;
496+ let kind =
497+ InvalidPoolTransactionError :: Consensus ( InvalidTransactionError :: TxTypeNotSupported ) ;
498+ merged. mark_invalid ( & first, kind) ;
502499
503500 assert_eq ! ( merged. next( ) . map( |tx| * tx. hash( ) ) , Some ( * right_tx. hash( ) ) ) ;
504501 assert ! ( merged. next( ) . is_none( ) ) ;
0 commit comments