diff --git a/eth/backend.go b/eth/backend.go index 21d57665de5..ea2b9325819 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -1718,7 +1718,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 }