// sanitize checks the provided user configurations and changes anything that's
// unreasonable or unworkable.
sanitize checks the provided user configurations and changes anything that's
unreasonable or unworkable.
// sanitize checks the provided user configurations and changes anything that ' s // unreasonable or unworkable .
func (config *TxPoolConfig) sanitize() TxPoolConfig {
	conf := *config
	if conf.PriceLimit < 1 {
		log.Warn("Sanitizing invalid txpool price limit", "provided", conf.PriceLimit, "updated", DefaultTxPoolConfig.PriceLimit)
		conf.PriceLimit = DefaultTxPoolConfig.PriceLimit
	}
	return conf
}
func ( config * TxPoolConfig ) sanitize ( ) TxPoolConfig { conf := * config if conf . PriceLimit < 1 { log . Warn ( " " , " " , conf . PriceLimit , " " , DefaultTxPoolConfig . PriceLimit ) conf . PriceLimit = DefaultTxPoolConfig . PriceLimit } return conf }
sanitize checks the provided user configurations and changes anything that's
unreasonable or unworkable.
sanitize checks the provided user configurations and changes anything that ' s unreasonable or unworkable .