Skip to content

runner: refactor the way runners work with share(s) #2074

@iurii-ssv

Description

@iurii-ssv

BaseRunner can only have single share but currently it's stored (and returned) as a map -

Share map[phase0.ValidatorIndex]*spectypes.Share

we probably want to refactor that - BUT only after #2136 is merged (since it touches a lot of the code in the same area)

Since every Runner uses BaseRunner in some manner we might want to adjust runners too if that makes sense.

Note: CommitteeRunner might be an exception, be careful about that!

Update: seems like we need to preserve the map for BaseRunner.Share but rename it Share->Shares (and corresponding inits), make it package private, and maybe get rid of GetShares method

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions