go-ethereum/core/txpool
Péter Szilágyi bf1798e04e
common/prque: generic priority queue (#26290)
* common, core, eth, les, trie: make prque generic

* les/vflux/server: fixed issues in priorityPool

* common, core, eth, les, trie: make priority also generic in prque

* les/flowcontrol: add test case for priority accumulator overflow

* les/flowcontrol: avoid priority value overflow

* common/prque: use int priority in some tests

No need to convert to int64 when we can just change the type used by the
queue.

* common/prque: remove comment about int64 range

---------

Co-authored-by: Zsolt Felfoldi <zsfelfoldi@gmail.com>
Co-authored-by: Felix Lange <fjl@twurst.com>
2023-02-09 13:03:54 +02:00
..
journal.go all: refactor txpool into it's own package in prep for 4844 2022-10-24 16:35:53 +03:00
list.go all: assign zero after resize in implementations of heap.Interface (#26296) 2022-12-05 13:49:54 +01:00
list_test.go all: refactor txpool into it's own package in prep for 4844 2022-10-24 16:35:53 +03:00
noncer.go all: refactor txpool into it's own package in prep for 4844 2022-10-24 16:35:53 +03:00
txpool.go common/prque: generic priority queue (#26290) 2023-02-09 13:03:54 +02:00
txpool_test.go all: refactor txpool into it's own package in prep for 4844 2022-10-24 16:35:53 +03:00