Skip to content

[validitywindow] Unify Duplicate Implementations of Mock ChainIndex #2021

@RodrigoVillar

Description

@RodrigoVillar

Currently, we have two implementations of a mock ChainIndex:

type testChainIndex struct {
blocks map[ids.ID]ExecutionBlock[container]
}

type MockChainIndex[T emap.Item] struct {
blocks map[ids.ID]validitywindow.ExecutionBlock[T]
}

We should use a single implementation; this will most likely require us to split the validitywindow package into validitywindow and validitywindow_test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions