plugeth/eth
Felix Lange 9afc6816d2
common/lru: add generic LRU implementation (#26162)
It seems there is no fully typed library implementation of an LRU cache.
So I wrote one. Method names are the same as github.com/hashicorp/golang-lru,
and the new type can be used as a drop-in replacement.

Two reasons to do this:

- It's much easier to understand what a cache is for when the types are right there.
- Performance: the new implementation is slightly faster and performs zero memory
   allocations in Add when the cache is at capacity. Overall, memory usage of the cache
   is much reduced because keys are values are no longer wrapped in interface.
2022-11-14 15:41:56 +01:00
..
catalyst eth, catalyst: fix flaky tests (#26153) 2022-11-11 13:22:54 +01:00
downloader core, eth: for types with accurate size calcs, return uint64, not float (#26046) 2022-10-26 15:23:07 +03:00
ethconfig cmd, eth: implement full-sync tester (#26035) 2022-10-28 14:48:08 +02:00
fetcher all: use github.com/deckarep/golang-set/v2 (generic set) (#26159) 2022-11-14 15:16:52 +01:00
filters common/lru: add generic LRU implementation (#26162) 2022-11-14 15:41:56 +01:00
gasprice common/lru: add generic LRU implementation (#26162) 2022-11-14 15:41:56 +01:00
protocols all: use github.com/deckarep/golang-set/v2 (generic set) (#26159) 2022-11-14 15:16:52 +01:00
tracers eth/tracers: add multiplexing tracer (#26086) 2022-11-08 10:16:52 +01:00
api_backend.go all: refactor txpool into it's own package in prep for 4844 2022-10-24 16:35:53 +03:00
api_test.go core, trie, eth, cmd: rework preimage store (#25287) 2022-07-27 20:37:04 +02:00
api.go cmd, core, eth, les, light: track deleted nodes (#25757) 2022-09-27 10:01:02 +02:00
backend.go all: refactor txpool into it's own package in prep for 4844 2022-10-24 16:35:53 +03:00
bloombits.go eth: move eth.Config to a common package (#22205) 2021-02-05 13:51:15 +01:00
handler_eth_test.go eth, catalyst: fix flaky tests (#26153) 2022-11-11 13:22:54 +01:00
handler_eth.go eth: implement eth/68 (#25980) 2022-10-31 16:23:26 +02:00
handler_snap.go eth: check snap satelliteness, delegate drop to eth (#22235) 2021-02-02 10:44:36 +02:00
handler_test.go all: cleanup tests (#25641) 2022-09-07 20:21:59 +02:00
handler.go eth: fix a rare datarace on CHT challenge reply / shutdown 2022-09-20 14:14:24 +03:00
peer.go all: more linters (#24783) 2022-06-13 16:24:45 +02:00
peerset.go all: fix some typos (#25551) 2022-08-19 09:00:21 +03:00
state_accessor.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
sync_test.go eth: introduce eth67 protocol (#24093) 2022-06-15 12:56:47 +02:00
sync.go cmd, core, eth, les, params: add merge-passed chain config (#24538) 2022-08-01 15:13:25 +03:00