From 3197db8b83abcbb78193845406ed7755c05963d7 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 13 Feb 2026 18:29:26 +0100 Subject: [PATCH] eth/protocols/eth: fix 32bit build --- 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 12af95281d..0a733642f5 100644 --- a/eth/protocols/eth/handlers.go +++ b/eth/protocols/eth/handlers.go @@ -453,7 +453,7 @@ func newDerivableRawList[T any](list *rlp.RawList[T], write func([]byte, *bytes. } // Assert to ensure 32-bit offsets are valid. This can never trigger // unless a block body component or p2p receipt list is larger than 4GB. - if len(dl.data) > math.MaxUint32 { + if uint(len(dl.data)) > math.MaxUint32 { panic("list data too big for derivableRawList") } it := list.ContentIterator()