fixed initial base price bug

This commit is contained in:
zsfelfoldi 2015-05-26 14:39:13 +02:00
parent 0930e190a7
commit 2e8016c80d
1 changed files with 4 additions and 0 deletions

View File

@ -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))