diff --git a/core/tx_pool.go b/core/tx_pool.go index 9fdcc920fe3a..149a4802b50b 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -589,7 +589,7 @@ func (pool *TxPool) AllMevBundles() []types.MevBundle { // MevBundles returns a list of bundles valid for the given blockNumber/blockTimestamp // also prunes bundles that are outdated -func (pool *TxPool) MevBundles(blockNumber *big.Int, blockTimestamp uint64) ([]types.MevBundle, error) { +func (pool *TxPool) MevBundles(blockNumber *big.Int, blockTimestamp uint64) []types.MevBundle { pool.mu.Lock() defer pool.mu.Unlock() @@ -617,7 +617,7 @@ func (pool *TxPool) MevBundles(blockNumber *big.Int, blockTimestamp uint64) ([]t } pool.mevBundles = bundles - return ret, nil + return ret } // AddMevBundle adds a mev bundle to the pool diff --git a/light/txpool.go b/light/txpool.go index f8563f91d3d6..07ae3406964f 100644 --- a/light/txpool.go +++ b/light/txpool.go @@ -553,8 +553,8 @@ func (pool *TxPool) RemoveTx(hash common.Hash) { // MevBundles returns a list of bundles valid for the given blockNumber/blockTimestamp // also prunes bundles that are outdated -func (pool *TxPool) MevBundles(blockNumber *big.Int, blockTimestamp uint64) ([]types.Transactions, error) { - return nil, nil +func (pool *TxPool) MevBundles(blockNumber *big.Int, blockTimestamp uint64) []types.Transactions { + return nil } // AddMevBundle adds a mev bundle to the pool diff --git a/miner/worker.go b/miner/worker.go index 6db4470904c2..c4fda2708014 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -1263,12 +1263,7 @@ func (w *worker) fillTransactions(interrupt *int32, env *environment) error { } } if w.flashbots.isFlashbots && !w.flashbots.isMegabundleWorker { - bundles, err := w.eth.TxPool().MevBundles(env.header.Number, env.header.Time) - if err != nil { - log.Error("Failed to fetch pending transactions", "err", err) - return err - } - + bundles := w.eth.TxPool().MevBundles(env.header.Number, env.header.Time) bundleTxs, bundle, numBundles, err := w.generateFlashbotsBundle(env, bundles, pending) if err != nil { log.Error("Failed to generate flashbots bundle", "err", err)