mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
upgrade newPriceHeap
This commit is contained in:
parent
e1be14f99c
commit
a4b7a65ac9
1 changed files with 2 additions and 2 deletions
|
|
@ -59,8 +59,8 @@ func newPriceHeap(basefee *uint256.Int, blobfee *uint256.Int, index *map[common.
|
|||
sort.Slice(addrs, func(i, j int) bool { return bytes.Compare(addrs[i][:], addrs[j][:]) < 0 })
|
||||
|
||||
heap.addrs = addrs
|
||||
for _, addr := range addrs {
|
||||
heap.index[addr] = len(heap.addrs)
|
||||
for i, addr := range addrs {
|
||||
heap.index[addr] = i
|
||||
}
|
||||
heap.reinit(basefee, blobfee, true)
|
||||
return heap
|
||||
|
|
|
|||
Loading…
Reference in a new issue