@@ -423,16 +423,10 @@ func sequencingBatchStep(
423
423
default :
424
424
}
425
425
426
- sender , ok := transaction .GetSender ()
427
- if ok {
428
- if _ , found := sendersToSkip [sender ]; found {
429
- continue
430
- }
431
- }
432
-
433
426
txHash := transaction .Hash ()
434
427
435
- if _ , ok := transaction .GetSender (); ! ok {
428
+ txSender , ok := transaction .GetSender ()
429
+ if ! ok {
436
430
signer := types .MakeSigner (cfg .chainConfig , executionAt , 0 )
437
431
sender , err := signer .Sender (transaction )
438
432
if err != nil {
@@ -445,6 +439,11 @@ func sequencingBatchStep(
445
439
}
446
440
447
441
transaction .SetSender (sender )
442
+ txSender = sender
443
+ }
444
+
445
+ if _ , found := sendersToSkip [txSender ]; found {
446
+ continue
448
447
}
449
448
450
449
effectiveGas := batchState .blockState .getL1EffectiveGases (cfg , i )
@@ -502,6 +501,11 @@ func sequencingBatchStep(
502
501
}
503
502
504
503
if ! batchState .isL1Recovery () {
504
+ // we need to now skip any further transactions from the same sender in this batch as we will encounter nonce problems
505
+ if sender , ok := transaction .GetSender (); ok {
506
+ sendersToSkip [sender ] = struct {}{}
507
+ }
508
+
505
509
/*
506
510
here we check if the transaction on it's own would overdflow the batch counters
507
511
by creating a new counter collector and priming it for a single block with just this transaction
@@ -512,11 +516,6 @@ func sequencingBatchStep(
512
516
check if this hash has appeared too many times and stop allowing it through if required.
513
517
*/
514
518
515
- // we need to now skip any further transactions from the same sender in this batch as we will encounter nonce problems
516
- if sender , ok := transaction .GetSender (); ok {
517
- sendersToSkip [sender ] = struct {}{}
518
- }
519
-
520
519
// now check if this transaction on it's own would overflow counters for the batch
521
520
tempCounters := prepareBatchCounters (batchContext , batchState )
522
521
singleTxOverflow , err := tempCounters .SingleTransactionOverflowCheck (txCounters )
0 commit comments