@@ -760,7 +760,7 @@ func (w *worker) commitTransaction(env *environment, tx *txpool.Transaction) ([]
760760 gp = env .gasPool .Gas ()
761761 )
762762 // TODO (MariusVanDerWijden): Move this check
763- if len (env .blobs )+ len (tx .BlobHashes ())* params .BlobTxDataGasPerBlob > params .BlobTxMaxDataGasPerBlock {
763+ if len (env .blobs )+ len (tx .Tx . BlobHashes ())* params .BlobTxDataGasPerBlob > params .BlobTxMaxDataGasPerBlock {
764764 return nil , errors .New ("max data blobs reached" )
765765 }
766766 receipt , err := core .ApplyTransaction (w .chainConfig , w .chain , & env .coinbase , env .gasPool , env .state , env .header , tx .Tx , & env .header .GasUsed , * w .chain .GetVMConfig ())
@@ -833,8 +833,8 @@ func (w *worker) commitTransactions(env *environment, txs *transactionsByPriceAn
833833 coalescedLogs = append (coalescedLogs , logs ... )
834834 env .tcount ++
835835 txs .Shift ()
836- if tx .Type () == types .BlobTxType {
837- txWrap := w .eth .TxPool ().Get (tx .Hash ())
836+ if tx .Tx . Type () == types .BlobTxType {
837+ txWrap := w .eth .TxPool ().Get (tx .Tx . Hash ())
838838 env .blobs = append (env .blobs , txWrap .BlobTxBlobs ... )
839839 env .commitments = append (env .commitments , txWrap .BlobTxCommits ... )
840840 env .proofs = append (env .proofs , txWrap .BlobTxProofs ... )
@@ -964,16 +964,10 @@ func (w *worker) fillTransactions(interrupt *atomic.Int32, env *environment) err
964964 if txs := pending [account ]; len (txs ) > 0 {
965965 delete (pending , account )
966966 for _ , tx := range txs {
967- localTxs [account ] = append (localTxs [account ], tx . Tx )
967+ localTxs [account ] = append (localTxs [account ], tx )
968968 }
969969 }
970970 }
971- for account , remotes := range pending {
972- remoteTxs [account ] = make ([]* types.Transaction , 0 , len (remotes ))
973- for _ , tx := range remotes {
974- remoteTxs [account ] = append (remoteTxs [account ], tx .Tx )
975- }
976- }
977971
978972 if len (localTxs ) > 0 {
979973 txs := newTransactionsByPriceAndNonce (env .signer , localTxs , env .header .BaseFee )
0 commit comments