diff --git a/release/go/spacemesh/v1/debug_types.pb.go b/release/go/spacemesh/v1/debug_types.pb.go index a9dd12e8..5eca40b3 100644 --- a/release/go/spacemesh/v1/debug_types.pb.go +++ b/release/go/spacemesh/v1/debug_types.pb.go @@ -20,6 +20,104 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +type NetworkInfoResponse_NATType int32 + +const ( + NetworkInfoResponse_NATTypeUnknown NetworkInfoResponse_NATType = 0 + NetworkInfoResponse_Cone NetworkInfoResponse_NATType = 1 + NetworkInfoResponse_Symmetric NetworkInfoResponse_NATType = 2 +) + +// Enum value maps for NetworkInfoResponse_NATType. +var ( + NetworkInfoResponse_NATType_name = map[int32]string{ + 0: "NATTypeUnknown", + 1: "Cone", + 2: "Symmetric", + } + NetworkInfoResponse_NATType_value = map[string]int32{ + "NATTypeUnknown": 0, + "Cone": 1, + "Symmetric": 2, + } +) + +func (x NetworkInfoResponse_NATType) Enum() *NetworkInfoResponse_NATType { + p := new(NetworkInfoResponse_NATType) + *p = x + return p +} + +func (x NetworkInfoResponse_NATType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NetworkInfoResponse_NATType) Descriptor() protoreflect.EnumDescriptor { + return file_spacemesh_v1_debug_types_proto_enumTypes[0].Descriptor() +} + +func (NetworkInfoResponse_NATType) Type() protoreflect.EnumType { + return &file_spacemesh_v1_debug_types_proto_enumTypes[0] +} + +func (x NetworkInfoResponse_NATType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use NetworkInfoResponse_NATType.Descriptor instead. +func (NetworkInfoResponse_NATType) EnumDescriptor() ([]byte, []int) { + return file_spacemesh_v1_debug_types_proto_rawDescGZIP(), []int{2, 0} +} + +type NetworkInfoResponse_Reachability int32 + +const ( + NetworkInfoResponse_ReachabilityUnknown NetworkInfoResponse_Reachability = 0 + NetworkInfoResponse_Public NetworkInfoResponse_Reachability = 1 + NetworkInfoResponse_Private NetworkInfoResponse_Reachability = 2 +) + +// Enum value maps for NetworkInfoResponse_Reachability. +var ( + NetworkInfoResponse_Reachability_name = map[int32]string{ + 0: "ReachabilityUnknown", + 1: "Public", + 2: "Private", + } + NetworkInfoResponse_Reachability_value = map[string]int32{ + "ReachabilityUnknown": 0, + "Public": 1, + "Private": 2, + } +) + +func (x NetworkInfoResponse_Reachability) Enum() *NetworkInfoResponse_Reachability { + p := new(NetworkInfoResponse_Reachability) + *p = x + return p +} + +func (x NetworkInfoResponse_Reachability) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NetworkInfoResponse_Reachability) Descriptor() protoreflect.EnumDescriptor { + return file_spacemesh_v1_debug_types_proto_enumTypes[1].Descriptor() +} + +func (NetworkInfoResponse_Reachability) Type() protoreflect.EnumType { + return &file_spacemesh_v1_debug_types_proto_enumTypes[1] +} + +func (x NetworkInfoResponse_Reachability) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use NetworkInfoResponse_Reachability.Descriptor instead. +func (NetworkInfoResponse_Reachability) EnumDescriptor() ([]byte, []int) { + return file_spacemesh_v1_debug_types_proto_rawDescGZIP(), []int{2, 1} +} + type Proposal_Status int32 const ( @@ -50,11 +148,11 @@ func (x Proposal_Status) String() string { } func (Proposal_Status) Descriptor() protoreflect.EnumDescriptor { - return file_spacemesh_v1_debug_types_proto_enumTypes[0].Descriptor() + return file_spacemesh_v1_debug_types_proto_enumTypes[2].Descriptor() } func (Proposal_Status) Type() protoreflect.EnumType { - return &file_spacemesh_v1_debug_types_proto_enumTypes[0] + return &file_spacemesh_v1_debug_types_proto_enumTypes[2] } func (x Proposal_Status) Number() protoreflect.EnumNumber { @@ -165,7 +263,13 @@ type NetworkInfoResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ListenAddresses []string `protobuf:"bytes,2,rep,name=listen_addresses,json=listenAddresses,proto3" json:"listen_addresses,omitempty"` + KnownAddresses []string `protobuf:"bytes,3,rep,name=known_addresses,json=knownAddresses,proto3" json:"known_addresses,omitempty"` + NatTypeUdp NetworkInfoResponse_NATType `protobuf:"varint,4,opt,name=nat_type_udp,json=natTypeUdp,proto3,enum=spacemesh.v1.NetworkInfoResponse_NATType" json:"nat_type_udp,omitempty"` + NatTypeTcp NetworkInfoResponse_NATType `protobuf:"varint,5,opt,name=nat_type_tcp,json=natTypeTcp,proto3,enum=spacemesh.v1.NetworkInfoResponse_NATType" json:"nat_type_tcp,omitempty"` + Reachability NetworkInfoResponse_Reachability `protobuf:"varint,6,opt,name=reachability,proto3,enum=spacemesh.v1.NetworkInfoResponse_Reachability" json:"reachability,omitempty"` + DhtServerEnabled bool `protobuf:"varint,7,opt,name=dht_server_enabled,json=dhtServerEnabled,proto3" json:"dht_server_enabled,omitempty"` } func (x *NetworkInfoResponse) Reset() { @@ -207,6 +311,48 @@ func (x *NetworkInfoResponse) GetId() string { return "" } +func (x *NetworkInfoResponse) GetListenAddresses() []string { + if x != nil { + return x.ListenAddresses + } + return nil +} + +func (x *NetworkInfoResponse) GetKnownAddresses() []string { + if x != nil { + return x.KnownAddresses + } + return nil +} + +func (x *NetworkInfoResponse) GetNatTypeUdp() NetworkInfoResponse_NATType { + if x != nil { + return x.NatTypeUdp + } + return NetworkInfoResponse_NATTypeUnknown +} + +func (x *NetworkInfoResponse) GetNatTypeTcp() NetworkInfoResponse_NATType { + if x != nil { + return x.NatTypeTcp + } + return NetworkInfoResponse_NATTypeUnknown +} + +func (x *NetworkInfoResponse) GetReachability() NetworkInfoResponse_Reachability { + if x != nil { + return x.Reachability + } + return NetworkInfoResponse_ReachabilityUnknown +} + +func (x *NetworkInfoResponse) GetDhtServerEnabled() bool { + if x != nil { + return x.DhtServerEnabled + } + return false +} + type EpochData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -557,63 +703,93 @@ var file_spacemesh_v1_debug_types_proto_rawDesc = []byte{ 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x0e, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x22, 0x25, 0x0a, 0x13, - 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x22, 0x23, 0x0a, 0x09, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, - 0x12, 0x16, 0x0a, 0x06, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x06, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x22, 0x39, 0x0a, 0x0b, 0x45, 0x6c, 0x69, 0x67, - 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x0c, 0x0a, 0x01, 0x6a, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x01, 0x6a, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x22, 0x28, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x22, 0x41, 0x0a, - 0x11, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x03, 0x69, 0x64, 0x73, - 0x22, 0xc1, 0x03, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, - 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, - 0x68, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x2f, - 0x0a, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x79, - 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, - 0x31, 0x0a, 0x07, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x49, 0x64, 0x52, 0x07, 0x73, 0x6d, 0x65, 0x73, 0x68, - 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, - 0x45, 0x70, 0x6f, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x61, 0x6c, 0x6c, 0x6f, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x06, 0x62, 0x61, 0x6c, 0x6c, 0x6f, 0x74, 0x12, 0x3f, 0x0a, 0x0d, 0x65, 0x6c, 0x69, - 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, - 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0d, 0x65, 0x6c, 0x69, - 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, - 0x61, 0x6c, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x22, 0x23, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x6e, 0x63, 0x6c, - 0x75, 0x64, 0x65, 0x64, 0x10, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, - 0x64, 0x61, 0x74, 0x61, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x44, 0x65, 0x62, 0x75, 0x67, - 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, - 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, - 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, - 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, - 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, - 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, - 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, - 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x22, 0x8f, 0x04, 0x0a, + 0x13, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, + 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, + 0x27, 0x0a, 0x0f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x4b, 0x0a, 0x0c, 0x6e, 0x61, 0x74, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x5f, 0x75, 0x64, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, + 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x4e, 0x41, 0x54, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x6e, 0x61, 0x74, 0x54, 0x79, + 0x70, 0x65, 0x55, 0x64, 0x70, 0x12, 0x4b, 0x0a, 0x0c, 0x6e, 0x61, 0x74, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x5f, 0x74, 0x63, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4e, + 0x41, 0x54, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x6e, 0x61, 0x74, 0x54, 0x79, 0x70, 0x65, 0x54, + 0x63, 0x70, 0x12, 0x52, 0x0a, 0x0c, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x61, 0x63, + 0x68, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x2c, 0x0a, 0x12, 0x64, 0x68, 0x74, 0x5f, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x10, 0x64, 0x68, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x22, 0x36, 0x0a, 0x07, 0x4e, 0x41, 0x54, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x12, 0x0a, 0x0e, 0x4e, 0x41, 0x54, 0x54, 0x79, 0x70, 0x65, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, + 0x6e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x43, 0x6f, 0x6e, 0x65, 0x10, 0x01, 0x12, 0x0d, 0x0a, + 0x09, 0x53, 0x79, 0x6d, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x10, 0x02, 0x22, 0x40, 0x0a, 0x0c, + 0x52, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x17, 0x0a, 0x13, + 0x52, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x55, 0x6e, 0x6b, 0x6e, + 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x10, + 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x10, 0x02, 0x22, 0x23, + 0x0a, 0x09, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x62, + 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x65, 0x61, + 0x63, 0x6f, 0x6e, 0x22, 0x39, 0x0a, 0x0b, 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x12, 0x0c, 0x0a, 0x01, 0x6a, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x01, 0x6a, + 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x28, + 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x22, 0x41, 0x0a, 0x11, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, + 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0xc1, 0x03, 0x0a, 0x08, + 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x4e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x2f, 0x0a, 0x05, 0x6c, 0x61, 0x79, + 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x52, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x07, 0x73, 0x6d, + 0x65, 0x73, 0x68, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6d, 0x65, 0x73, 0x68, + 0x65, 0x72, 0x49, 0x64, 0x52, 0x07, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x12, 0x1e, 0x0a, + 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, + 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x2d, 0x0a, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, + 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, + 0x62, 0x61, 0x6c, 0x6c, 0x6f, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x61, + 0x6c, 0x6c, 0x6f, 0x74, 0x12, 0x3f, 0x0a, 0x0d, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6c, 0x69, 0x67, 0x69, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0d, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x23, 0x0a, 0x06, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 0x10, + 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x42, + 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x44, 0x65, 0x62, 0x75, 0x67, 0x54, 0x79, 0x70, 0x65, 0x73, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, + 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -628,38 +804,43 @@ func file_spacemesh_v1_debug_types_proto_rawDescGZIP() []byte { return file_spacemesh_v1_debug_types_proto_rawDescData } -var file_spacemesh_v1_debug_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_spacemesh_v1_debug_types_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_spacemesh_v1_debug_types_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_spacemesh_v1_debug_types_proto_goTypes = []interface{}{ - (Proposal_Status)(0), // 0: spacemesh.v1.Proposal.Status - (*AccountsRequest)(nil), // 1: spacemesh.v1.AccountsRequest - (*AccountsResponse)(nil), // 2: spacemesh.v1.AccountsResponse - (*NetworkInfoResponse)(nil), // 3: spacemesh.v1.NetworkInfoResponse - (*EpochData)(nil), // 4: spacemesh.v1.EpochData - (*Eligibility)(nil), // 5: spacemesh.v1.Eligibility - (*ActiveSetRequest)(nil), // 6: spacemesh.v1.ActiveSetRequest - (*ActiveSetResponse)(nil), // 7: spacemesh.v1.ActiveSetResponse - (*Proposal)(nil), // 8: spacemesh.v1.Proposal - (*Account)(nil), // 9: spacemesh.v1.Account - (*ActivationId)(nil), // 10: spacemesh.v1.ActivationId - (*EpochNumber)(nil), // 11: spacemesh.v1.EpochNumber - (*LayerNumber)(nil), // 12: spacemesh.v1.LayerNumber - (*SmesherId)(nil), // 13: spacemesh.v1.SmesherId + (NetworkInfoResponse_NATType)(0), // 0: spacemesh.v1.NetworkInfoResponse.NATType + (NetworkInfoResponse_Reachability)(0), // 1: spacemesh.v1.NetworkInfoResponse.Reachability + (Proposal_Status)(0), // 2: spacemesh.v1.Proposal.Status + (*AccountsRequest)(nil), // 3: spacemesh.v1.AccountsRequest + (*AccountsResponse)(nil), // 4: spacemesh.v1.AccountsResponse + (*NetworkInfoResponse)(nil), // 5: spacemesh.v1.NetworkInfoResponse + (*EpochData)(nil), // 6: spacemesh.v1.EpochData + (*Eligibility)(nil), // 7: spacemesh.v1.Eligibility + (*ActiveSetRequest)(nil), // 8: spacemesh.v1.ActiveSetRequest + (*ActiveSetResponse)(nil), // 9: spacemesh.v1.ActiveSetResponse + (*Proposal)(nil), // 10: spacemesh.v1.Proposal + (*Account)(nil), // 11: spacemesh.v1.Account + (*ActivationId)(nil), // 12: spacemesh.v1.ActivationId + (*EpochNumber)(nil), // 13: spacemesh.v1.EpochNumber + (*LayerNumber)(nil), // 14: spacemesh.v1.LayerNumber + (*SmesherId)(nil), // 15: spacemesh.v1.SmesherId } var file_spacemesh_v1_debug_types_proto_depIdxs = []int32{ - 9, // 0: spacemesh.v1.AccountsResponse.account_wrapper:type_name -> spacemesh.v1.Account - 10, // 1: spacemesh.v1.ActiveSetResponse.ids:type_name -> spacemesh.v1.ActivationId - 11, // 2: spacemesh.v1.Proposal.epoch:type_name -> spacemesh.v1.EpochNumber - 12, // 3: spacemesh.v1.Proposal.layer:type_name -> spacemesh.v1.LayerNumber - 13, // 4: spacemesh.v1.Proposal.smesher:type_name -> spacemesh.v1.SmesherId - 4, // 5: spacemesh.v1.Proposal.data:type_name -> spacemesh.v1.EpochData - 5, // 6: spacemesh.v1.Proposal.eligibilities:type_name -> spacemesh.v1.Eligibility - 0, // 7: spacemesh.v1.Proposal.status:type_name -> spacemesh.v1.Proposal.Status - 8, // [8:8] is the sub-list for method output_type - 8, // [8:8] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name + 11, // 0: spacemesh.v1.AccountsResponse.account_wrapper:type_name -> spacemesh.v1.Account + 0, // 1: spacemesh.v1.NetworkInfoResponse.nat_type_udp:type_name -> spacemesh.v1.NetworkInfoResponse.NATType + 0, // 2: spacemesh.v1.NetworkInfoResponse.nat_type_tcp:type_name -> spacemesh.v1.NetworkInfoResponse.NATType + 1, // 3: spacemesh.v1.NetworkInfoResponse.reachability:type_name -> spacemesh.v1.NetworkInfoResponse.Reachability + 12, // 4: spacemesh.v1.ActiveSetResponse.ids:type_name -> spacemesh.v1.ActivationId + 13, // 5: spacemesh.v1.Proposal.epoch:type_name -> spacemesh.v1.EpochNumber + 14, // 6: spacemesh.v1.Proposal.layer:type_name -> spacemesh.v1.LayerNumber + 15, // 7: spacemesh.v1.Proposal.smesher:type_name -> spacemesh.v1.SmesherId + 6, // 8: spacemesh.v1.Proposal.data:type_name -> spacemesh.v1.EpochData + 7, // 9: spacemesh.v1.Proposal.eligibilities:type_name -> spacemesh.v1.Eligibility + 2, // 10: spacemesh.v1.Proposal.status:type_name -> spacemesh.v1.Proposal.Status + 11, // [11:11] is the sub-list for method output_type + 11, // [11:11] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name } func init() { file_spacemesh_v1_debug_types_proto_init() } @@ -776,7 +957,7 @@ func file_spacemesh_v1_debug_types_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_spacemesh_v1_debug_types_proto_rawDesc, - NumEnums: 1, + NumEnums: 3, NumMessages: 8, NumExtensions: 0, NumServices: 0, diff --git a/spacemesh/v1/debug_types.proto b/spacemesh/v1/debug_types.proto index 6c74e2fd..90952737 100644 --- a/spacemesh/v1/debug_types.proto +++ b/spacemesh/v1/debug_types.proto @@ -15,6 +15,22 @@ message AccountsResponse { message NetworkInfoResponse { string id = 1; + repeated string listen_addresses = 2; + repeated string known_addresses = 3; + enum NATType { + NATTypeUnknown = 0; + Cone = 1; + Symmetric = 2; + } + NATType nat_type_udp = 4; + NATType nat_type_tcp = 5; + enum Reachability { + ReachabilityUnknown = 0; + Public = 1; + Private = 2; + }; + Reachability reachability = 6; + bool dht_server_enabled = 7; } message EpochData { @@ -50,4 +66,4 @@ message Proposal { Included = 1; } Status status = 9; -} \ No newline at end of file +}