Skip to content

Use persistent list length methods #30

@ArtiomTr

Description

@ArtiomTr

In ./lean_client/containers/src/state.rs there is such line:

// Count validators by iterating (since PersistentList doesn't have len())

But that's not true? PersistentList has len_usize() method: https://github.com/grandinetech/grandine/blob/5bdc78763c8959ad689c79d51d7d59978460bb1e/ssz/src/persistent_list.rs#L293.

So if there are more such places, they all need to be changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions