change min and max gas price in SuggestPrice

This commit is contained in:
Daniel Liu 2023-07-17 17:54:49 +08:00
parent 72c51e2bc9
commit 726172903b

View file

@ -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)
}