mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-19 22:40:31 +00:00
fixed gas price corr. factor
This commit is contained in:
parent
6e212bdc6d
commit
a977cecbe4
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ func (self *GasPriceOracle) SuggestPrice() *big.Int {
|
||||||
return big.NewInt(10000000000000) // apparently MinGasPrice is not initialized during some tests
|
return big.NewInt(10000000000000) // apparently MinGasPrice is not initialized during some tests
|
||||||
}
|
}
|
||||||
|
|
||||||
baseCorr := new(big.Int).Mul(base, big.NewInt(int64(100+self.eth.GpobaseCorrectionFactor)))
|
baseCorr := new(big.Int).Mul(base, big.NewInt(int64(self.eth.GpobaseCorrectionFactor)))
|
||||||
baseCorr.Div(baseCorr, big.NewInt(100))
|
baseCorr.Div(baseCorr, big.NewInt(100))
|
||||||
|
|
||||||
if baseCorr.Cmp(self.eth.GpoMinGasPrice) < 0 {
|
if baseCorr.Cmp(self.eth.GpoMinGasPrice) < 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue