From 2e8016c80d450a7d1126b481f1262b7cd9dec24d Mon Sep 17 00:00:00 2001 From: zsfelfoldi Date: Tue, 26 May 2015 14:39:13 +0200 Subject: fixed initial base price bug --- eth/gasprice.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eth/gasprice.go b/eth/gasprice.go index f5b241e2c..6f46559a2 100644 --- a/eth/gasprice.go +++ b/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)) -- cgit