Skip to content

Commit

Permalink
fix(taiko-geth): revert a tx.Shift() change (#335)
Browse files Browse the repository at this point in the history
* revert change

* revert change
  • Loading branch information
mask-pp authored Oct 22, 2024
1 parent 1340ded commit 46576d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions miner/taiko_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 46576d2

Please sign in to comment.