diff --git a/netmap/grpc/types.pb.go b/netmap/grpc/types.pb.go index 385713d4..59f86125 100644 Binary files a/netmap/grpc/types.pb.go and b/netmap/grpc/types.pb.go differ diff --git a/netmap/test/generate.go b/netmap/test/generate.go index 260a0242..2b713c52 100644 --- a/netmap/test/generate.go +++ b/netmap/test/generate.go @@ -81,6 +81,17 @@ func GenerateReplica(empty bool) *netmap.Replica { return m } +func GenerateEC(empty bool) *netmap.Replica { + m := new(netmap.Replica) + + if !empty { + m.SetECDataCount(4) + m.SetECParityCount(2) + } + + return m +} + func GenerateReplicas(empty bool) []netmap.Replica { var res []netmap.Replica @@ -88,6 +99,7 @@ func GenerateReplicas(empty bool) []netmap.Replica { res = append(res, *GenerateReplica(false), *GenerateReplica(false), + *GenerateEC(false), ) }