go-ethereum/triedb/pathdb
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
..
buffer.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00
database.go chore: fix various comments (#31082) 2025-01-28 16:56:23 +01:00
database_test.go triedb/pathdb: fix state revert on v2 history (#31060) 2025-01-22 14:06:36 +01:00
difflayer.go chore: fix various comments (#31082) 2025-01-28 16:56:23 +01:00
difflayer_test.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00
disklayer.go triedb/pathdb: fix state revert on v2 history (#31060) 2025-01-22 14:06:36 +01:00
errors.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
execute.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
flush.go core, trie, triedb: minor changes from snapshot integration (#30599) 2024-10-18 17:06:31 +02:00
history.go all: drop x/exp direct dependency (#30558) 2025-02-27 15:53:52 +01:00
history_inspect.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
history_test.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
holdable_iterator.go trie/pathdb: state iterator (snapshot integration pt 4) (#30654) 2024-12-16 21:10:08 +08:00
holdable_iterator_test.go trie/pathdb: state iterator (snapshot integration pt 4) (#30654) 2024-12-16 21:10:08 +08:00
iterator.go trie/pathdb: state iterator (snapshot integration pt 4) (#30654) 2024-12-16 21:10:08 +08:00
iterator_binary.go trie/pathdb: state iterator (snapshot integration pt 4) (#30654) 2024-12-16 21:10:08 +08:00
iterator_fast.go all: use cmp.Compare (#30958) 2025-01-02 14:06:47 +01:00
iterator_test.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00
journal.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00
layertree.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
metrics.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
nodes.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
reader.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
states.go all: drop x/exp direct dependency (#30558) 2025-02-27 15:53:52 +01:00
states_test.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00