fixed initial base price bug

pull/990/head
zsfelfoldi 10 years ago
parent 0930e190a7
commit 2e8016c80d
  1. 4
      eth/gasprice.go

@ -159,6 +159,10 @@ func (self *GasPriceOracle) SuggestPrice() *big.Int {
base := self.lastBase
self.lastBaseMutex.Unlock()
if base == nil {
base = self.eth.GpoMinGasPrice
}
baseCorr := new(big.Int).Mul(base, big.NewInt(int64(100+self.eth.GpobaseCorrectionFactor)))
baseCorr.Div(baseCorr, big.NewInt(100))

Loading…
Cancel
Save