Skip to content

Commit

Permalink
check correct error message for rejected blob txs (ethereum#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto-bayardo committed Jan 19, 2023
1 parent 2e2980d commit ae5e685
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ const (
var (
errBlockInterruptedByNewHead = errors.New("new head arrived while building block")
errBlockInterruptedByRecommit = errors.New("recommit interrupt while building block")
errMaxBlobsReached = errors.New("reached max number of blobs per block")
errBlockInterruptedByTimeout = errors.New("timeout while building block")
)

Expand Down Expand Up @@ -943,7 +942,7 @@ func (w *worker) commitTransactions(env *environment, txs *types.TransactionsByP
log.Trace("Skipping unsupported transaction type", "sender", from, "type", tx.Type())
txs.Pop()

case errors.Is(err, errMaxBlobsReached):
case errors.Is(err, core.ErrDataGasLimitReached):
// Shift, as the next tx from the account may not contain blobs
log.Trace("Skipping blob transaction. Reached max number of blobs in current context", "sender", from, "numBlobs", len(tx.DataHashes()))
txs.Shift()
Expand Down

0 comments on commit ae5e685

Please sign in to comment.