Commit 4ebd8e8a authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

Merge pull request #1906 from cfromknecht/surface-miner-nonce-too-high

feat: surface miner nonce too high errors
parents 2b743678 2924845d
---
'@eth-optimism/l2geth': patch
---
expose ErrNonceTooHigh from miner
......@@ -884,13 +884,8 @@ func (w *worker) commitTransactionsWithError(txs *types.TransactionsByPriceAndNo
// Return specific execution errors directly to the user to
// avoid returning the generic ErrCannotCommitTxnErr. It is safe
// to return the error directly since l2geth only processes at
// most one transaction per block. Currently, we map
// ErrNonceTooHigh to ErrNonceTooLow to match the behavior of
// the mempool, but this mapping will be removed at a later
// point once we decided to expose ErrNonceTooHigh to users.
if err == core.ErrNonceTooHigh {
return core.ErrNonceTooLow
} else if err != nil {
// most one transaction per block.
if err != nil {
return err
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment