From e38f7767c97359d31f63b76a311563299f4c896d Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Mon, 9 Jun 2025 15:33:35 +0200 Subject: [PATCH] more updates --- miner/worker.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/miner/worker.go b/miner/worker.go index 87b6f9d734..506e8960fd 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -23,8 +23,6 @@ import ( "sync/atomic" "time" - "github.com/ethereum/go-ethereum/trie" - "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/consensus/misc/eip1559" "github.com/ethereum/go-ethereum/consensus/misc/eip4844" @@ -97,13 +95,6 @@ type generateParams struct { noTxs bool // Flag whether an empty block without any transaction is expected } -func (env *environment) encodedSizeWithTx(tx *types.Transaction) uint64 { - body := types.Body{Transactions: append(env.txs, tx), Withdrawals: make([]*types.Withdrawal, 0)} - env.header.RequestsHash = &common.Hash{} - block := types.NewBlock(env.header, &body, env.receipts, trie.NewStackTrie(nil)) - return block.Size() -} - // generateWork generates a sealing block based on the given parameters. func (miner *Miner) generateWork(params *generateParams, witness bool) *newPayloadResult { work, err := miner.prepareWork(params, witness) @@ -407,10 +398,6 @@ func (miner *Miner) commitTransactions(env *environment, plainTxs, blobTxs *tran break } - if miner.chainConfig.IsOsaka(env.header.Number, env.header.Time) && env.encodedSizeWithTx(tx) > params.BlockRLPSizeCap { - break - } - // Make sure all transactions after osaka have cell proofs if miner.chainConfig.IsOsaka(env.header.Number, env.header.Time) { if sidecar := tx.BlobTxSidecar(); sidecar != nil {