Skip to content

Commit

Permalink
core: consider blobs count for intrinsic gas check
Browse files Browse the repository at this point in the history
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
  • Loading branch information
protolambda and lightclient authored Feb 25, 2022
1 parent c971490 commit d19e6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tx_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error {
return ErrInsufficientFunds
}
// Ensure the transaction has more gas than the basic tx fee.
intrGas, err := IntrinsicGas(tx.Data(), tx.AccessList(), 0, tx.To() == nil, true, pool.istanbul)
intrGas, err := IntrinsicGas(tx.Data(), tx.AccessList(), len(tx.BlobVersionedHashes()), tx.To() == nil, true, pool.istanbul)
if err != nil {
return err
}
Expand Down

0 comments on commit d19e6ee

Please sign in to comment.