From 6e212bdc6d1319c84c305c446bbf1ba9ddfdc66d Mon Sep 17 00:00:00 2001 From: zsfelfoldi Date: Tue, 26 May 2015 15:15:54 +0200 Subject: [PATCH] fallback for uninitialized GPO config values --- eth/gasprice.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eth/gasprice.go b/eth/gasprice.go index 6f46559a2..12e76fc2c 100644 --- a/eth/gasprice.go +++ b/eth/gasprice.go @@ -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)) -- GitLab