From 6b60b5ea87e7e896701c14403a4ccfbabcba10e7 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 13 Feb 2026 23:29:06 +0100 Subject: [PATCH] eth/protocols/eth: use list.Len instead of it.Count --- eth/protocols/eth/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/protocols/eth/handlers.go b/eth/protocols/eth/handlers.go index fa5a079447..7f1ccc360d 100644 --- a/eth/protocols/eth/handlers.go +++ b/eth/protocols/eth/handlers.go @@ -457,7 +457,7 @@ func newDerivableRawList[T any](list *rlp.RawList[T], write func([]byte, *bytes. panic("list data too big for derivableRawList") } it := list.ContentIterator() - dl.offsets = make([]uint32, it.Count()) + dl.offsets = make([]uint32, list.Len()) for i := 0; it.Next(); i++ { dl.offsets[i] = uint32(it.Offset()) }