mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-24 20:47:16 +00:00
fixed initial base price bug
This commit is contained in:
parent
0930e190a7
commit
2e8016c80d
@ -159,6 +159,10 @@ func (self *GasPriceOracle) SuggestPrice() *big.Int {
|
||||
base := self.lastBase
|
||||
self.lastBaseMutex.Unlock()
|
||||
|
||||
if base == nil {
|
||||
base = self.eth.GpoMinGasPrice
|
||||
}
|
||||
|
||||
baseCorr := new(big.Int).Mul(base, big.NewInt(int64(100+self.eth.GpobaseCorrectionFactor)))
|
||||
baseCorr.Div(baseCorr, big.NewInt(100))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user