mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 19:00:46 +00:00
change min and max gas price in SuggestPrice
This commit is contained in:
parent
72c51e2bc9
commit
726172903b
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ func (gpo *Oracle) SuggestPrice(ctx context.Context) (*big.Int, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check gas price min.
|
// Check gas price min.
|
||||||
minGasPrice := common.MinGasPrice
|
minGasPrice := common.GetMinGasPrice(head.Number)
|
||||||
if price.Cmp(minGasPrice) < 0 {
|
if price.Cmp(minGasPrice) < 0 {
|
||||||
price = new(big.Int).Set(minGasPrice)
|
price = new(big.Int).Set(minGasPrice)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue