mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
eth: fix ethapi eth_feeHistory
This commit is contained in:
parent
659347f886
commit
234002a428
1 changed files with 2 additions and 3 deletions
|
|
@ -108,11 +108,10 @@ func (oracle *Oracle) processBlock(bf *blockFees, percentiles []float64) {
|
|||
bf.results.gasUsedRatio = float64(bf.header.GasUsed) / float64(bf.header.GasLimit)
|
||||
if blobGasUsed := bf.header.BlobGasUsed; blobGasUsed != nil {
|
||||
maxBlobGas := eip4844.MaxBlobGasPerBlock(config, bf.header.Time)
|
||||
if maxBlobGas == 0 {
|
||||
return
|
||||
}
|
||||
if maxBlobGas != 0 {
|
||||
bf.results.blobGasUsedRatio = float64(*blobGasUsed) / float64(maxBlobGas)
|
||||
}
|
||||
}
|
||||
|
||||
if len(percentiles) == 0 {
|
||||
// rewards were not requested, return null
|
||||
|
|
|
|||
Loading…
Reference in a new issue