Skip to content

Commit

Permalink
fix(taiko-geth): fix a mempool fetch issue (taikoxyz#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp authored and lwedge99 committed Nov 8, 2024
1 parent 6c20f9d commit 3d32922
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions miner/taiko_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,6 @@ loop:
txs.Shift()

case errors.Is(err, nil):
// Everything ok, collect the logs and shift in the next transaction from the same account
env.tcount++
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 @@ -321,6 +317,10 @@ 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
// the same sender because of `nonce-too-high` clause.
Expand Down

0 comments on commit 3d32922

Please sign in to comment.