go-ethereum/core/state
Martin HS 767c202e47
all: drop x/exp direct dependency (#30558)
This is a not-particularly-important "cleanliness" PR. It removes the
last remnants of the `x/exp` package, where we used the `maps.Keys`
function.

The original returned the keys in a slice, but when it became 'native'
the signature changed to return an iterator, so the new idiom is
`slices.Collect(maps.Keys(theMap))`, unless of course the raw iterator
can be used instead.

In some cases, where we previously collect into slice and then sort, we
can now instead do `slices.SortXX` on the iterator instead, making the
code a bit more concise.

This PR might be _slighly_ less optimal, because the original `x/exp`
implementation allocated the slice at the correct size off the bat,
which I suppose the new code won't.

Putting it up for discussion.

---------

Co-authored-by: Felix Lange <fjl@twurst.com>
2025-02-27 15:53:52 +01:00
..
pruner all: clean up goerli flag and config (#30289) 2024-08-20 15:59:48 +02:00
snapshot all: drop x/exp direct dependency (#30558) 2025-02-27 15:53:52 +01:00
access_events.go core, trie: verkle state processor tests (#30672) 2024-11-04 14:19:50 +01:00
access_events_test.go core/state, core/vm: Nyota contract create init simplification (#30409) 2024-09-13 15:37:30 +02:00
access_list.go core/state: remove pointless wrapper functions (#30891) 2024-12-11 11:05:59 +01:00
database.go core/state: enable partial-functional reader (snapshot integration pt 3) (#30650) 2024-12-10 10:10:49 +08:00
dump.go eth/tracers: live chain tracing with hooks (#29189) 2024-03-22 18:53:53 +01:00
iterator.go core/state: introduce code reader interface (#30816) 2024-11-29 15:32:45 +01:00
iterator_test.go core/state: state reader abstraction (#29761) 2024-09-05 13:10:47 +03:00
journal.go all: implement eip-7702 set code tx (#30078) 2024-12-16 11:29:37 +01:00
metrics.go core: add metrics for state access (#30353) 2024-08-26 20:02:10 +08:00
reader.go core/state: introduce code reader interface (#30816) 2024-11-29 15:32:45 +01:00
state_object.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00
state_object_test.go build: use golangci-lint (#20295) 2019-11-18 10:49:17 +02:00
state_test.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00
statedb.go core/tracing: state journal wrapper (#30441) 2025-02-05 13:58:25 +01:00
statedb_fuzz_test.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
statedb_hooked.go core/tracing: state journal wrapper (#30441) 2025-02-05 13:58:25 +01:00
statedb_hooked_test.go core/tracing: state journal wrapper (#30441) 2025-02-05 13:58:25 +01:00
statedb_test.go core/tracing: state journal wrapper (#30441) 2025-02-05 13:58:25 +01:00
stateupdate.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00
sync.go core,eth,internal: fix typo (#29024) 2024-02-20 19:42:48 +08:00
sync_test.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00
transient_storage.go core/state: better randomized testing (postcheck) on journalling (#29627) 2024-04-25 09:56:25 +02:00
trie_prefetcher.go metrics, cmd/geth: change init-process of metrics (#30814) 2024-12-10 13:27:29 +01:00
trie_prefetcher_test.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00