diff --git a/miner/algo_greedy.go b/miner/algo_greedy.go index 46ee61449..f6c5cd0cc 100644 --- a/miner/algo_greedy.go +++ b/miner/algo_greedy.go @@ -113,6 +113,7 @@ func (b *greedyBuilder) mergeOrdersIntoEnvDiff( func (b *greedyBuilder) buildBlock(simBundles []types.SimulatedBundle, simSBundles []*types.SimSBundle, transactions map[common.Address][]*txpool.LazyTransaction) (*environment, []types.SimulatedBundle, []types.UsedSBundle) { orders := newTransactionsByPriceAndNonce(b.inputEnvironment.signer, transactions, simBundles, simSBundles, b.inputEnvironment.header.BaseFee) envDiff := newEnvironmentDiff(b.inputEnvironment.copy()) + b.inputEnvironment.state.StopPrefetcher() usedBundles, usedSbundles := b.mergeOrdersIntoEnvDiff(envDiff, orders) envDiff.applyToBaseEnv() return envDiff.baseEnvironment, usedBundles, usedSbundles diff --git a/miner/algo_greedy_buckets.go b/miner/algo_greedy_buckets.go index 3a3c9f37d..af563ebe8 100644 --- a/miner/algo_greedy_buckets.go +++ b/miner/algo_greedy_buckets.go @@ -226,6 +226,7 @@ func (b *greedyBucketsBuilder) mergeOrdersIntoEnvDiff( func (b *greedyBucketsBuilder) buildBlock(simBundles []types.SimulatedBundle, simSBundles []*types.SimSBundle, transactions map[common.Address][]*txpool.LazyTransaction) (*environment, []types.SimulatedBundle, []types.UsedSBundle) { orders := newTransactionsByPriceAndNonce(b.inputEnvironment.signer, transactions, simBundles, simSBundles, b.inputEnvironment.header.BaseFee) envDiff := newEnvironmentDiff(b.inputEnvironment.copy()) + b.inputEnvironment.state.StopPrefetcher() usedBundles, usedSbundles := b.mergeOrdersIntoEnvDiff(envDiff, orders) envDiff.applyToBaseEnv() return envDiff.baseEnvironment, usedBundles, usedSbundles