提交 6e212bdc 编写于 作者: Z zsfelfoldi

fallback for uninitialized GPO config values

上级 2e8016c8
......@@ -162,6 +162,9 @@ func (self *GasPriceOracle) SuggestPrice() *big.Int {
if base == nil {
base = self.eth.GpoMinGasPrice
}
if base == nil {
return big.NewInt(10000000000000) // apparently MinGasPrice is not initialized during some tests
}
baseCorr := new(big.Int).Mul(base, big.NewInt(int64(100+self.eth.GpobaseCorrectionFactor)))
baseCorr.Div(baseCorr, big.NewInt(100))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册