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.
Currently, we have two implementations of a mock
ChainIndex:hypersdk/internal/validitywindow/validitywindow_test.go
Lines 427 to 429 in 2fada6d
hypersdk/internal/validitywindow/validitywindowtest/test_chain_index.go
Lines 16 to 18 in 2fada6d
We should use a single implementation; this will most likely require us to split the
validitywindowpackage intovaliditywindowandvaliditywindow_test.