Skip to content

Return an iterator in ForkChoice.getChildren method #556

Open
@dadepo

Description

@dadepo
    fn getChildren(
        self: *const ForkChoice,
        slot_hash_key: *const SlotAndHash,
    ) ?SortedMap(SlotAndHash, void) {
        const fork_info = self.fork_infos.get(slot_hash_key.*) orelse return null;
        return fork_info.children;
    }

This should be updated to return an iterator instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status

      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions