go-ethereum/cmd/devp2p/internal/ethtest
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
..
testdata params,core: add max and target value to chain config (#31002) 2025-02-04 15:43:18 +01:00
chain.go all: drop x/exp direct dependency (#30558) 2025-02-27 15:53:52 +01:00
chain_test.go cmd/devp2p: update eth/snap protocol test suites for PoS (#28340) 2023-12-20 17:23:48 +01:00
conn.go cmd/devp2p/internal/ethtest: remove TD from status validation (#31137) 2025-02-07 09:59:12 +08:00
engine.go cmd: use package filepath over path for file system operations (#29227) 2024-03-12 10:00:34 +01:00
mkchain.sh cmd/devp2p: update eth/snap protocol test suites for PoS (#28340) 2023-12-20 17:23:48 +01:00
protocol.go all: fix some typos in comments and names (#31023) 2025-01-14 14:16:15 +01:00
snap.go build: update to golangci-lint 1.61.0 (#30587) 2024-10-14 19:25:22 +02:00
suite.go params,core: add max and target value to chain config (#31002) 2025-02-04 15:43:18 +01:00
suite_test.go all: simplify tests using t.TempDir() (#30150) 2024-07-15 15:26:58 +02:00
transaction.go all: replace fmt.Errorf() with errors.New() if no param required (#29472) 2024-04-08 12:59:17 +02:00