From 726172903ba87c1e987471746d2fe25723381b38 Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Mon, 17 Jul 2023 17:54:49 +0800 Subject: [PATCH] change min and max gas price in SuggestPrice --- eth/gasprice/gasprice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/gasprice/gasprice.go b/eth/gasprice/gasprice.go index fec29cd436..8dfaeec43a 100644 --- a/eth/gasprice/gasprice.go +++ b/eth/gasprice/gasprice.go @@ -141,7 +141,7 @@ func (gpo *Oracle) SuggestPrice(ctx context.Context) (*big.Int, error) { } // Check gas price min. - minGasPrice := common.MinGasPrice + minGasPrice := common.GetMinGasPrice(head.Number) if price.Cmp(minGasPrice) < 0 { price = new(big.Int).Set(minGasPrice) }