Skip to content

Commit 46576d2

Browse files
authored
fix(taiko-geth): revert a tx.Shift() change (#335)
* revert change * revert change
1 parent 1340ded commit 46576d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

miner/taiko_worker.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ loop:
294294
txs.Shift()
295295

296296
case errors.Is(err, nil):
297+
// Everything ok, collect the logs and shift in the next transaction from the same account
298+
txs.Shift()
299+
297300
data, err := rlp.EncodeToBytes(env.txs)
298301
if err != nil {
299302
log.Trace("Failed to rlp encode the pending transaction %s: %w", tx.Hash(), err)
@@ -317,9 +320,7 @@ loop:
317320
}
318321
}
319322

320-
// Everything ok, collect the logs and shift in the next transaction from the same account
321323
env.tcount++
322-
txs.Shift()
323324

324325
default:
325326
// Transaction is regarded as invalid, drop all consecutive transactions from

0 commit comments

Comments
 (0)