mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +00:00
eth/gasprice: fix testcase
This commit is contained in:
parent
c772db8404
commit
e372311a9c
1 changed files with 3 additions and 1 deletions
|
|
@ -259,7 +259,9 @@ func (oracle *Oracle) getBlockValues(ctx context.Context, blockNum uint64, limit
|
|||
copy(sortedTxs, txs)
|
||||
baseFee := block.BaseFee()
|
||||
baseFee256 := new(uint256.Int)
|
||||
baseFee256.SetFromBig(baseFee)
|
||||
if baseFee != nil {
|
||||
baseFee256.SetFromBig(baseFee)
|
||||
}
|
||||
slices.SortFunc(sortedTxs, func(a, b *types.Transaction) int {
|
||||
return a.EffectiveGasTipCmp(b, baseFee256)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue