Commit cf31e2d1 authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

rename: witness -> validator

parent 2b8a15ef
......@@ -3,4 +3,4 @@ directories:
- baseapi
- scheduler
- nodemanager
- witness
- validator
......@@ -24,6 +24,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type WorkerMessage struct {
// Types that are valid to be assigned to Message:
//
// *WorkerMessage_HeartbeatResponse
// *WorkerMessage_SubmitTaskResult
// *WorkerMessage_Status
......@@ -205,6 +206,7 @@ func (*WorkerMessage) XXX_OneofWrappers() []interface{} {
type ManagerMessage struct {
// Types that are valid to be assigned to Message:
//
// *ManagerMessage_HeartbeatRequest
// *ManagerMessage_PushTaskMessage
// *ManagerMessage_ProofTaskResult
......
......@@ -51,7 +51,7 @@ func (m *ValidatorStatusRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_ValidatorStatusRequest proto.InternalMessageInfo
type ValidatorStatusResponse struct {
ValidatorId string `protobuf:"bytes,1,opt,name=validator_id,json=validatorId,proto3" json:"validator_id,omitempty"`
WitnessId string `protobuf:"bytes,1,opt,name=witness_id,json=witnessId,proto3" json:"witness_id,omitempty"`
Peers []string `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
......@@ -82,9 +82,9 @@ func (m *ValidatorStatusResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_ValidatorStatusResponse proto.InternalMessageInfo
func (m *ValidatorStatusResponse) GetValidatorId() string {
func (m *ValidatorStatusResponse) GetWitnessId() string {
if m != nil {
return m.ValidatorId
return m.WitnessId
}
return ""
}
......@@ -158,6 +158,8 @@ type Proof struct {
ManagerSignature []byte `protobuf:"bytes,3,opt,name=manager_signature,json=managerSignature,proto3" json:"manager_signature,omitempty"`
ContainerSignature []byte `protobuf:"bytes,4,opt,name=container_signature,json=containerSignature,proto3" json:"container_signature,omitempty"`
MinerSignature []byte `protobuf:"bytes,5,opt,name=miner_signature,json=minerSignature,proto3" json:"miner_signature,omitempty"`
TaskType uint64 `protobuf:"varint,8,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"`
Timestamp uint64 `protobuf:"varint,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
......@@ -236,6 +238,20 @@ func (m *Proof) GetMinerSignature() []byte {
return nil
}
func (m *Proof) GetTaskType() uint64 {
if m != nil {
return m.TaskType
}
return 0
}
func (m *Proof) GetTimestamp() uint64 {
if m != nil {
return m.Timestamp
}
return 0
}
type PushProofResponse struct {
Workload uint64 `protobuf:"varint,1,opt,name=workload,proto3" json:"workload,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -553,42 +569,44 @@ func init() {
}
var fileDescriptor_668f1b5e8791e33f = []byte{
// 586 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcf, 0x6e, 0xda, 0x4e,
0x10, 0x96, 0x71, 0x02, 0x61, 0x80, 0x84, 0x6c, 0xf8, 0x05, 0xff, 0xda, 0x0b, 0x35, 0xaa, 0x8a,
0x14, 0xd5, 0x96, 0x9b, 0x5b, 0x2a, 0x55, 0x2a, 0x17, 0x1a, 0x45, 0x91, 0x90, 0x23, 0xd1, 0xa8,
0x8a, 0x84, 0x36, 0x78, 0x8b, 0x2d, 0xb0, 0x17, 0x76, 0xd7, 0xa0, 0x3c, 0x43, 0xdf, 0xa2, 0xc7,
0x3e, 0x48, 0x0f, 0x7d, 0x8c, 0x1e, 0xfb, 0x0a, 0xbd, 0x54, 0xde, 0xb5, 0x8d, 0x49, 0x94, 0xb4,
0xb7, 0xfd, 0x66, 0xbe, 0x99, 0x6f, 0xfe, 0xec, 0x2e, 0x74, 0x57, 0x78, 0x1e, 0x78, 0x58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cb, 0xd7, 0x53, 0x34, 0xf5, 0xbf, 0x6b, 0xd0, 0x9c, 0xd0, 0x70, 0xeb, 0x91, 0xf4, 0x5b,
0x69, 0x9d, 0x99, 0xf2, 0x30, 0x79, 0xea, 0x43, 0xed, 0xd3, 0xc5, 0x34, 0x10, 0x7e, 0x7c, 0x6b,
0x4d, 0x68, 0x68, 0x53, 0xef, 0x8e, 0x73, 0x12, 0xf3, 0xfc, 0xf0, 0x5a, 0x7e, 0x08, 0x13, 0x3a,
0xb7, 0xa7, 0x24, 0xb2, 0x25, 0xb0, 0xa7, 0xd4, 0x2e, 0x7e, 0x22, 0x6f, 0x73, 0xb0, 0x72, 0xbe,
0x96, 0xf4, 0xd1, 0xf5, 0xf5, 0xb7, 0x52, 0x3d, 0xff, 0x16, 0xac, 0x91, 0xf3, 0xa3, 0x00, 0x6f,
0x46, 0xce, 0xcf, 0x92, 0x51, 0x84, 0x37, 0x83, 0x61, 0xff, 0x92, 0x08, 0xec, 0x61, 0x81, 0x7f,
0x95, 0x1a, 0xb9, 0xeb, 0xec, 0x6c, 0xe4, 0xdc, 0x96, 0xa5, 0xe2, 0xe9, 0x9f, 0x00, 0x00, 0x00,
0xff, 0xff, 0x63, 0x44, 0xe2, 0xd7, 0xb6, 0x04, 0x00, 0x00,
// 621 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdf, 0x4e, 0xdb, 0x3c,
0x14, 0x57, 0x5a, 0x68, 0x9b, 0x43, 0x81, 0x62, 0xf8, 0x20, 0xdf, 0xd8, 0xa4, 0x2a, 0x68, 0x5a,
0x25, 0xb4, 0x44, 0x1d, 0x77, 0x4c, 0x9a, 0x34, 0x6e, 0x3a, 0x84, 0x98, 0xaa, 0x32, 0x75, 0x68,
0x42, 0xaa, 0x4c, 0x73, 0xd6, 0x46, 0x34, 0x71, 0xb0, 0x9d, 0x56, 0x7d, 0x86, 0xbd, 0xc5, 0x2e,
0xf7, 0x00, 0x7b, 0x84, 0x5d, 0xec, 0x31, 0x76, 0xb9, 0xa7, 0x98, 0x62, 0x27, 0x69, 0x0a, 0x82,
0xed, 0x2e, 0xbf, 0x3f, 0xc7, 0xbf, 0x73, 0x6c, 0xc7, 0x70, 0x30, 0xa5, 0x13, 0xdf, 0xa3, 0x92,
0x71, 0x77, 0xda, 0x76, 0x39, 0xde, 0xc6, 0x28, 0xe4, 0x80, 0xa3, 0x88, 0x58, 0x28, 0xd0, 0x89,
0x38, 0x93, 0x8c, 0xd4, 0x73, 0x93, 0x33, 0x6d, 0xdb, 0x16, 0xec, 0xf6, 0x33, 0x7c, 0x21, 0xa9,
0x8c, 0x45, 0x4f, 0x97, 0xd9, 0xef, 0x61, 0xef, 0x9e, 0xa2, 0x17, 0x22, 0xcf, 0x00, 0x66, 0xbe,
0x0c, 0x51, 0x88, 0x81, 0xef, 0x59, 0x46, 0xd3, 0x68, 0x99, 0x3d, 0x33, 0x65, 0x4e, 0x3d, 0xb2,
0x03, 0xab, 0x11, 0x22, 0x17, 0x56, 0xa9, 0x59, 0x6e, 0x99, 0x3d, 0x0d, 0xec, 0x2f, 0x06, 0x34,
0xba, 0xb1, 0x18, 0x77, 0x39, 0x63, 0x9f, 0xd3, 0x10, 0x72, 0x08, 0x95, 0x28, 0xc1, 0xc2, 0x32,
0x9a, 0xe5, 0xd6, 0xda, 0xab, 0x6d, 0xa7, 0xd8, 0x9d, 0xa3, 0xbd, 0xa9, 0x85, 0x3c, 0x87, 0x0d,
0x8e, 0x33, 0xca, 0xbd, 0x01, 0xf5, 0x3c, 0x8e, 0x22, 0x09, 0x48, 0xa2, 0xd7, 0x35, 0xfb, 0x56,
0x93, 0xe4, 0x00, 0xd6, 0x03, 0x3f, 0x44, 0x9e, 0xbb, 0xca, 0xca, 0x55, 0x57, 0x64, 0x6a, 0xb2,
0xbf, 0x97, 0x60, 0x55, 0xad, 0x4e, 0x9e, 0x40, 0x6d, 0xc6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0x00,
}
......@@ -21,8 +21,9 @@ var _ = math.Inf
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type ValidatedProof struct {
Balance uint64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"`
Balance string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
Workload uint64 `protobuf:"varint,2,opt,name=workload,proto3" json:"workload,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
......@@ -52,11 +53,11 @@ func (m *ValidatedProof) XXX_DiscardUnknown() {
var xxx_messageInfo_ValidatedProof proto.InternalMessageInfo
func (m *ValidatedProof) GetBalance() uint64 {
func (m *ValidatedProof) GetBalance() string {
if m != nil {
return m.Balance
}
return 0
return ""
}
func (m *ValidatedProof) GetWorkload() uint64 {
......@@ -66,9 +67,16 @@ func (m *ValidatedProof) GetWorkload() uint64 {
return 0
}
func (m *ValidatedProof) GetTimestamp() uint64 {
if m != nil {
return m.Timestamp
}
return 0
}
type MinerObject struct {
Miner string `protobuf:"bytes,1,opt,name=miner,proto3" json:"miner,omitempty"`
Balance uint64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
Balance string `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`
Workload uint64 `protobuf:"varint,3,opt,name=workload,proto3" json:"workload,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
......@@ -106,11 +114,11 @@ func (m *MinerObject) GetMiner() string {
return ""
}
func (m *MinerObject) GetBalance() uint64 {
func (m *MinerObject) GetBalance() string {
if m != nil {
return m.Balance
}
return 0
return ""
}
func (m *MinerObject) GetWorkload() uint64 {
......@@ -128,22 +136,23 @@ func init() {
func init() { proto.RegisterFile("validator/v1/resource.proto", fileDescriptor_f97d5d703a2bfce9) }
var fileDescriptor_f97d5d703a2bfce9 = []byte{
// 268 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2e, 0x4b, 0xcc, 0xc9,
0x4c, 0x49, 0x2c, 0xc9, 0x2f, 0xd2, 0x2f, 0x33, 0xd4, 0x2f, 0x4a, 0x2d, 0xce, 0x2f, 0x2d, 0x4a,
0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x81, 0x4b, 0xea, 0x95, 0x19, 0x2a, 0xb9,
0x71, 0xf1, 0x85, 0x41, 0xf8, 0xa9, 0x29, 0x01, 0x45, 0xf9, 0xf9, 0x69, 0x42, 0x12, 0x5c, 0xec,
0x49, 0x89, 0x39, 0x89, 0x79, 0xc9, 0xa9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x2c, 0x41, 0x30, 0xae,
0x90, 0x14, 0x17, 0x47, 0x79, 0x7e, 0x51, 0x76, 0x4e, 0x7e, 0x62, 0x8a, 0x04, 0x13, 0x58, 0x0a,
0xce, 0x57, 0x8a, 0xe4, 0xe2, 0xf6, 0xcd, 0xcc, 0x4b, 0x2d, 0xf2, 0x4f, 0xca, 0x4a, 0x4d, 0x2e,
0x11, 0x12, 0xe1, 0x62, 0xcd, 0x05, 0x71, 0xc1, 0x46, 0x70, 0x06, 0x41, 0x38, 0xc8, 0x46, 0x33,
0xe1, 0x36, 0x9a, 0x19, 0xd5, 0x68, 0xa7, 0xfd, 0x8c, 0x5c, 0x02, 0xc9, 0xf9, 0xb9, 0x7a, 0xc8,
0xee, 0x76, 0xe2, 0x0d, 0x82, 0xfa, 0x2a, 0x00, 0xe4, 0xa9, 0x00, 0xc6, 0x28, 0xef, 0xf4, 0xcc,
0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0xfc, 0x94, 0xca, 0xe2, 0xe2, 0xd4, 0xd2,
0x62, 0x38, 0x43, 0x17, 0xec, 0xf5, 0xe4, 0xfc, 0x1c, 0xfd, 0xf4, 0xd4, 0x3c, 0x7d, 0x30, 0x47,
0x3f, 0x3d, 0x5f, 0x1f, 0x39, 0x98, 0xac, 0xe1, 0x9c, 0x32, 0xc3, 0x45, 0x4c, 0xcc, 0x61, 0x11,
0x11, 0xab, 0x98, 0x78, 0xc2, 0xe0, 0x56, 0x86, 0x19, 0x9e, 0x42, 0xe2, 0xc6, 0x84, 0x19, 0x3e,
0x62, 0x92, 0x40, 0xe6, 0xc6, 0xb8, 0x07, 0x38, 0xf9, 0xa6, 0x96, 0x24, 0xa6, 0x24, 0x96, 0x24,
0xbe, 0x62, 0xe2, 0x85, 0x4b, 0x59, 0x59, 0x85, 0x19, 0x26, 0xb1, 0x81, 0x6d, 0x34, 0x06, 0x04,
0x00, 0x00, 0xff, 0xff, 0x75, 0x64, 0xf9, 0x45, 0x98, 0x01, 0x00, 0x00,
// 286 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xb1, 0x4e, 0xf3, 0x30,
0x14, 0x85, 0x15, 0xe7, 0xff, 0x81, 0x9a, 0x16, 0xa1, 0x88, 0x21, 0x02, 0x86, 0xaa, 0x53, 0x17,
0x62, 0x59, 0x6c, 0x65, 0xcb, 0xc2, 0x80, 0x2a, 0xa2, 0x0c, 0x56, 0x41, 0x5d, 0x1c, 0xdb, 0x84,
0x40, 0x92, 0x5b, 0x39, 0x4e, 0x10, 0xaf, 0xc3, 0xc8, 0x4b, 0xb0, 0xf3, 0x18, 0x8c, 0x3c, 0x05,
0x6a, 0x5a, 0x8c, 0x19, 0xd8, 0xee, 0x77, 0xcf, 0xf0, 0xe9, 0x1c, 0x7c, 0xd2, 0xf1, 0xb2, 0x90,
0xdc, 0x80, 0x26, 0x1d, 0x25, 0x5a, 0x35, 0xd0, 0x6a, 0xa1,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, 0x02, 0x00, 0x00, 0xff, 0xff, 0xa1, 0x35, 0x8e, 0x51, 0xb6, 0x01, 0x00, 0x00,
}
syntax = "proto3";
package witness.v1;
package validator.v1;
message WitnessStatusRequest {
message ValidatorStatusRequest {
}
message WitnessStatusResponse {
message ValidatorStatusResponse {
string witness_id = 1;
repeated string peers = 2;
}
......
syntax = "proto3";
package witness.v1;
package validator.v1;
message ValidatedProof {
string balance = 1;
......
syntax = "proto3";
package witness.v1;
package validator.v1;
import "witness/v1/request_response.proto";
import "validator/v1/request_response.proto";
service WitnessService {
rpc WitnessStatus(WitnessStatusRequest) returns (WitnessStatusResponse) {}; // witness status
service ValidatorService {
rpc ValidatorStatus(ValidatorStatusRequest) returns (ValidatorStatusResponse) {}; // validator status
rpc PushProof(PushProofRequest) returns (PushProofResponse) {}; // miner push proof
rpc GetMinerProof(GetMinerProofRequest) returns (GetMinerProofResponse) {}; // proof of a miner per day
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment