Skip to content

Commit

Permalink
Fix extra code from merging the optimism branch to this branch
Browse files Browse the repository at this point in the history
  • Loading branch information
boyuan-chen committed Oct 21, 2024
1 parent b50bdff commit dc821fb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth/tracers"
"github.com/ethereum/go-ethereum/params"
"golang.org/x/time/rate"
)

// Backend wraps all methods required for mining. Only full node is capable
Expand Down Expand Up @@ -87,9 +86,6 @@ type Miner struct {
pendingMu sync.Mutex // Lock protects the pending block

backend Backend

// TransactionConditional safegaurds
conditionalLimiter *rate.Limiter
}

// New creates a new miner with provided config.
Expand All @@ -102,8 +98,6 @@ func New(eth Backend, config Config, engine consensus.Engine) *Miner {
txpool: eth.TxPool(),
chain: eth.BlockChain(),
pending: &pending{},
// setup the rate limit imposed on conditional transactions when block building
conditionalLimiter: rate.NewLimiter(rate.Limit(config.RollupTransactionConditionalRateLimit), params.TransactionConditionalMaxCost),
}
}

Expand Down

0 comments on commit dc821fb

Please sign in to comment.