Skip to content

Commit

Permalink
Fixed Bor Log appearing on Ethereum Mainnet (#10405) (#10420)
Browse files Browse the repository at this point in the history
Cherry-pick:
be889f6

Co-authored-by: Giulio rebuffo <[email protected]>
  • Loading branch information
taratorio and Giulio2002 authored May 20, 2024
1 parent c2934dc commit 6d4a614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -1643,7 +1643,7 @@ func (s *Ethereum) DataDir() string {

// setBorDefaultMinerGasPrice enforces Miner.GasPrice to be equal to BorDefaultMinerGasPrice (30gwei by default)
func setBorDefaultMinerGasPrice(chainConfig *chain.Config, config *ethconfig.Config, logger log.Logger) {
if chainConfig.Bor != nil && config.Miner.GasPrice == nil || config.Miner.GasPrice.Cmp(ethconfig.BorDefaultMinerGasPrice) != 0 {
if chainConfig.Bor != nil && (config.Miner.GasPrice == nil || config.Miner.GasPrice.Cmp(ethconfig.BorDefaultMinerGasPrice) != 0) {
logger.Warn("Sanitizing invalid bor miner gas price", "provided", config.Miner.GasPrice, "updated", ethconfig.BorDefaultMinerGasPrice)
config.Miner.GasPrice = ethconfig.BorDefaultMinerGasPrice
}
Expand Down

0 comments on commit 6d4a614

Please sign in to comment.