diff --git a/miner/taiko_worker.go b/miner/taiko_worker.go index 3d0ba40f98..7a311c62cd 100644 --- a/miner/taiko_worker.go +++ b/miner/taiko_worker.go @@ -294,6 +294,9 @@ loop: txs.Shift() case errors.Is(err, nil): + // Everything ok, collect the logs and shift in the next transaction from the same account + txs.Shift() + data, err := rlp.EncodeToBytes(env.txs) if err != nil { log.Trace("Failed to rlp encode the pending transaction %s: %w", tx.Hash(), err) @@ -317,9 +320,7 @@ loop: } } - // Everything ok, collect the logs and shift in the next transaction from the same account env.tcount++ - txs.Shift() default: // Transaction is regarded as invalid, drop all consecutive transactions from