fix(taiko-geth): revert a tx.Shift() change (#335)

* revert change

* revert change
This commit is contained in:
maskpp 2024-10-22 19:09:52 +08:00 committed by GitHub
parent 1340ded381
commit 46576d2720
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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