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

update witness

parent 6d2c4dab
...@@ -24,6 +24,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package ...@@ -24,6 +24,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type WorkerMessage struct { type WorkerMessage struct {
// Types that are valid to be assigned to Message: // Types that are valid to be assigned to Message:
//
// *WorkerMessage_HeartbeatResponse // *WorkerMessage_HeartbeatResponse
// *WorkerMessage_SubmitTaskResult // *WorkerMessage_SubmitTaskResult
// *WorkerMessage_Status // *WorkerMessage_Status
...@@ -153,6 +154,7 @@ func (*WorkerMessage) XXX_OneofWrappers() []interface{} { ...@@ -153,6 +154,7 @@ func (*WorkerMessage) XXX_OneofWrappers() []interface{} {
type ManagerMessage struct { type ManagerMessage struct {
// Types that are valid to be assigned to Message: // Types that are valid to be assigned to Message:
//
// *ManagerMessage_HeartbeatRequest // *ManagerMessage_HeartbeatRequest
// *ManagerMessage_PushTaskMessage // *ManagerMessage_PushTaskMessage
// *ManagerMessage_ProofTaskResult // *ManagerMessage_ProofTaskResult
......
...@@ -99,9 +99,11 @@ func (m *WitnessStatusResponse) GetPeers() []string { ...@@ -99,9 +99,11 @@ func (m *WitnessStatusResponse) GetPeers() []string {
type PushProofRequest struct { type PushProofRequest struct {
Workload uint64 `protobuf:"varint,1,opt,name=workload,proto3" json:"workload,omitempty"` Workload uint64 `protobuf:"varint,1,opt,name=workload,proto3" json:"workload,omitempty"`
TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
ManagerSignature string `protobuf:"bytes,3,opt,name=manager_signature,json=managerSignature,proto3" json:"manager_signature,omitempty"` ReqHash []byte `protobuf:"bytes,6,opt,name=req_hash,json=reqHash,proto3" json:"req_hash,omitempty"`
ContainerSignature string `protobuf:"bytes,4,opt,name=container_signature,json=containerSignature,proto3" json:"container_signature,omitempty"` RespHash []byte `protobuf:"bytes,7,opt,name=resp_hash,json=respHash,proto3" json:"resp_hash,omitempty"`
MinerSignature string `protobuf:"bytes,5,opt,name=miner_signature,json=minerSignature,proto3" json:"miner_signature,omitempty"` 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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
...@@ -145,25 +147,39 @@ func (m *PushProofRequest) GetTaskId() string { ...@@ -145,25 +147,39 @@ func (m *PushProofRequest) GetTaskId() string {
return "" return ""
} }
func (m *PushProofRequest) GetManagerSignature() string { func (m *PushProofRequest) GetReqHash() []byte {
if m != nil {
return m.ReqHash
}
return nil
}
func (m *PushProofRequest) GetRespHash() []byte {
if m != nil {
return m.RespHash
}
return nil
}
func (m *PushProofRequest) GetManagerSignature() []byte {
if m != nil { if m != nil {
return m.ManagerSignature return m.ManagerSignature
} }
return "" return nil
} }
func (m *PushProofRequest) GetContainerSignature() string { func (m *PushProofRequest) GetContainerSignature() []byte {
if m != nil { if m != nil {
return m.ContainerSignature return m.ContainerSignature
} }
return "" return nil
} }
func (m *PushProofRequest) GetMinerSignature() string { func (m *PushProofRequest) GetMinerSignature() []byte {
if m != nil { if m != nil {
return m.MinerSignature return m.MinerSignature
} }
return "" return nil
} }
type PushProofResponse struct { type PushProofResponse struct {
...@@ -480,36 +496,38 @@ func init() { ...@@ -480,36 +496,38 @@ func init() {
func init() { proto.RegisterFile("witness/v1/request_response.proto", fileDescriptor_fcd71b26d9e7af56) } func init() { proto.RegisterFile("witness/v1/request_response.proto", fileDescriptor_fcd71b26d9e7af56) }
var fileDescriptor_fcd71b26d9e7af56 = []byte{ var fileDescriptor_fcd71b26d9e7af56 = []byte{
// 483 bytes of a gzipped FileDescriptorProto // 521 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xc1, 0x6a, 0xdb, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xcd, 0x6a, 0xdb, 0x4c,
0x10, 0xc5, 0x52, 0xe2, 0xd4, 0x13, 0x48, 0x9c, 0xad, 0xe3, 0x88, 0x42, 0xc1, 0x55, 0x0f, 0x0d, 0x14, 0xc5, 0x72, 0xe2, 0x9f, 0x9b, 0x8f, 0xc4, 0x99, 0xcf, 0x71, 0xd4, 0x96, 0x82, 0xab, 0x2e,
0x94, 0x4a, 0x88, 0xdc, 0x52, 0xe8, 0xc1, 0x17, 0x11, 0xda, 0x80, 0x70, 0xc0, 0x0e, 0x25, 0x60, 0x6a, 0x28, 0x95, 0x10, 0xd9, 0xa5, 0xd0, 0x85, 0x37, 0x6e, 0x68, 0x03, 0x46, 0x01, 0x3b, 0x94,
0x36, 0xd6, 0x54, 0x16, 0xb6, 0x76, 0xdd, 0xdd, 0x95, 0x4d, 0x7e, 0xa7, 0xc7, 0x7e, 0x41, 0xbf, 0x80, 0x99, 0x58, 0xb7, 0x92, 0xb0, 0xa5, 0xb1, 0x67, 0x46, 0x36, 0x79, 0x81, 0x3e, 0x48, 0x97,
0xa1, 0x87, 0x7e, 0x44, 0x8f, 0xfd, 0x8a, 0xa2, 0xd5, 0xca, 0x8a, 0x5d, 0x92, 0xe6, 0x36, 0x6f, 0x7d, 0x82, 0x3e, 0x43, 0x1f, 0xa3, 0xcb, 0x3e, 0x45, 0xd1, 0x68, 0x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, 0xe3, 0x8d, 0xba, 0xc0, 0x29,
0xdc, 0x84, 0x51, 0xff, 0x12, 0x15, 0x8d, 0xa9, 0xa2, 0x7f, 0xac, 0x7d, 0x53, 0x38, 0x3f, 0x1f, 0x9b, 0x3b, 0x01, 0x26, 0x8e, 0x02, 0x4e, 0xc0, 0x9c, 0xf2, 0x66, 0xdf, 0xea, 0xe7, 0xca, 0xfd,
0x06, 0xb7, 0x4d, 0xed, 0x72, 0xf6, 0x37, 0x00, 0x00, 0xff, 0xff, 0x6c, 0xf5, 0x84, 0x7f, 0xe1, 0x6a, 0x54, 0xc7, 0xd7, 0xd7, 0xdf, 0x0c, 0xd0, 0x77, 0x68, 0x8f, 0xdc, 0x1f, 0x1b, 0x70, 0x33,
0x03, 0x00, 0x00, 0x72, 0x7f, 0x1a, 0x9d, 0x12, 0xdc, 0x0c, 0x86, 0xfd, 0x4b, 0x94, 0xd4, 0xa7, 0x92, 0xfe, 0x32,
0x0e, 0x74, 0xe3, 0xfc, 0x7c, 0xe4, 0xde, 0xd6, 0x94, 0xcb, 0xd9, 0xef, 0x00, 0x00, 0x00, 0xff,
0xff, 0xe1, 0x31, 0xc5, 0x07, 0x19, 0x04, 0x00, 0x00,
} }
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