aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eth/gasprice.go4
1 files changed, 4 insertions, 0 deletions
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))