Skip to content

Commit

Permalink
graphql: fee history fields (ethereum#24452)
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan authored and wanwiset25 committed Nov 13, 2024
1 parent 5f2d20e commit 58c1473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/gasprice/feehistory.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (oracle *Oracle) processBlock(bf *blockFees, percentiles []float64) {
reward, _ := tx.EffectiveGasTip(bf.block.BaseFee())
sorter[i] = txGasAndReward{gasUsed: bf.receipts[i].GasUsed, reward: reward}
}
sort.Sort(sorter)
sort.Stable(sorter)

var txIndex int
sumGasUsed := sorter[0].gasUsed
Expand Down

0 comments on commit 58c1473

Please sign in to comment.