diff --git a/.changeset/olive-pots-camp.md b/.changeset/olive-pots-camp.md new file mode 100644 index 0000000000000..3911c1e23d1c2 --- /dev/null +++ b/.changeset/olive-pots-camp.md @@ -0,0 +1,5 @@ +--- +'@eth-optimism/l2geth': patch +--- + +expose ErrNonceTooHigh from miner diff --git a/l2geth/miner/worker.go b/l2geth/miner/worker.go index 8ecd298c2cea9..e731ef8d54e3d 100644 --- a/l2geth/miner/worker.go +++ b/l2geth/miner/worker.go @@ -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 } }