From d19e6ee23cda75042fe578431b96913d8817e157 Mon Sep 17 00:00:00 2001 From: Diederik Loerakker Date: Fri, 25 Feb 2022 14:09:40 -0700 Subject: [PATCH] core: consider blobs count for intrinsic gas check Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com> --- core/tx_pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tx_pool.go b/core/tx_pool.go index 4d5bc1aeda2c..554b91855e34 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -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 }