Skip to content

Commit

Permalink
core/chains/evm/gas: rm unused percentile field (#8655)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 authored Mar 9, 2023
1 parent 5e89866 commit da7c48b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/chains/evm/gas/block_history_estimator.go
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ var (
)

func (b *BlockHistoryEstimator) calculatePercentilePrices(blocks []evmtypes.Block, percentile int, eip1559 bool, f func(gasPrices []*assets.Wei), f2 func(tipCaps []*assets.Wei)) (gasPrice, tipCap *assets.Wei, err error) {
gasPrices, tipCaps := b.getPercentilePricesFromBlocks(blocks, percentile, eip1559)
gasPrices, tipCaps := b.getPricesFromBlocks(blocks, eip1559)
if len(gasPrices) == 0 {
return nil, nil, ErrNoSuitableTransactions
}
Expand All @@ -739,7 +739,7 @@ func (b *BlockHistoryEstimator) calculatePercentilePrices(blocks []evmtypes.Bloc
return
}

func (b *BlockHistoryEstimator) getPercentilePricesFromBlocks(blocks []evmtypes.Block, percentile int, eip1559 bool) (gasPrices, tipCaps []*assets.Wei) {
func (b *BlockHistoryEstimator) getPricesFromBlocks(blocks []evmtypes.Block, eip1559 bool) (gasPrices, tipCaps []*assets.Wei) {
gasPrices = make([]*assets.Wei, 0)
tipCaps = make([]*assets.Wei, 0)
for _, block := range blocks {
Expand Down

0 comments on commit da7c48b

Please sign in to comment.