mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +00:00
eth/protocols/eth: use list.Len instead of it.Count
This commit is contained in:
parent
e3af26e0bf
commit
6b60b5ea87
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue