From 0bb2ba1116fe69e16bf3a00066fc5ce50e293acf Mon Sep 17 00:00:00 2001 From: MestryOmkar Date: Mon, 10 Dec 2018 11:09:51 +0530 Subject: [PATCH] update minGasPrice in SuggestPrice --- eth/gasprice/gasprice.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eth/gasprice/gasprice.go b/eth/gasprice/gasprice.go index 0fe0f3c513..f29d5a31c9 100644 --- a/eth/gasprice/gasprice.go +++ b/eth/gasprice/gasprice.go @@ -30,7 +30,6 @@ import ( ) var maxPrice = big.NewInt(500 * params.Shannon) -var minPrice = big.NewInt(common.MinGasPrice) type Config struct { Blocks int @@ -142,8 +141,9 @@ func (gpo *Oracle) SuggestPrice(ctx context.Context) (*big.Int, error) { } // Check gas price min. - if price.Cmp(minPrice) < 0 { - price = new(big.Int).Set(minPrice) + minGasPrice := big.NewInt(common.MinGasPrice) + if price.Cmp(minGasPrice) < 0 { + price = new(big.Int).Set(minGasPrice) } gpo.cacheLock.Lock()