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

witness add timestamp

parent 58538ec8
...@@ -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
...@@ -205,6 +206,7 @@ func (*WorkerMessage) XXX_OneofWrappers() []interface{} { ...@@ -205,6 +206,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
......
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: validator/v1/request_response.proto
package validatorv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type ValidatorStatusRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ValidatorStatusRequest) Reset() { *m = ValidatorStatusRequest{} }
func (m *ValidatorStatusRequest) String() string { return proto.CompactTextString(m) }
func (*ValidatorStatusRequest) ProtoMessage() {}
func (*ValidatorStatusRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_668f1b5e8791e33f, []int{0}
}
func (m *ValidatorStatusRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ValidatorStatusRequest.Unmarshal(m, b)
}
func (m *ValidatorStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ValidatorStatusRequest.Marshal(b, m, deterministic)
}
func (m *ValidatorStatusRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ValidatorStatusRequest.Merge(m, src)
}
func (m *ValidatorStatusRequest) XXX_Size() int {
return xxx_messageInfo_ValidatorStatusRequest.Size(m)
}
func (m *ValidatorStatusRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ValidatorStatusRequest.DiscardUnknown(m)
}
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"`
Peers []string `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ValidatorStatusResponse) Reset() { *m = ValidatorStatusResponse{} }
func (m *ValidatorStatusResponse) String() string { return proto.CompactTextString(m) }
func (*ValidatorStatusResponse) ProtoMessage() {}
func (*ValidatorStatusResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_668f1b5e8791e33f, []int{1}
}
func (m *ValidatorStatusResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ValidatorStatusResponse.Unmarshal(m, b)
}
func (m *ValidatorStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ValidatorStatusResponse.Marshal(b, m, deterministic)
}
func (m *ValidatorStatusResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ValidatorStatusResponse.Merge(m, src)
}
func (m *ValidatorStatusResponse) XXX_Size() int {
return xxx_messageInfo_ValidatorStatusResponse.Size(m)
}
func (m *ValidatorStatusResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ValidatorStatusResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ValidatorStatusResponse proto.InternalMessageInfo
func (m *ValidatorStatusResponse) GetValidatorId() string {
if m != nil {
return m.ValidatorId
}
return ""
}
func (m *ValidatorStatusResponse) GetPeers() []string {
if m != nil {
return m.Peers
}
return nil
}
type PushProofRequest struct {
Proofs []*Proof `protobuf:"bytes,1,rep,name=proofs,proto3" json:"proofs,omitempty"`
RewardAddress string `protobuf:"bytes,2,opt,name=reward_address,json=rewardAddress,proto3" json:"reward_address,omitempty"`
MinerAddress string `protobuf:"bytes,3,opt,name=miner_address,json=minerAddress,proto3" json:"miner_address,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PushProofRequest) Reset() { *m = PushProofRequest{} }
func (m *PushProofRequest) String() string { return proto.CompactTextString(m) }
func (*PushProofRequest) ProtoMessage() {}
func (*PushProofRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_668f1b5e8791e33f, []int{2}
}
func (m *PushProofRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PushProofRequest.Unmarshal(m, b)
}
func (m *PushProofRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PushProofRequest.Marshal(b, m, deterministic)
}
func (m *PushProofRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PushProofRequest.Merge(m, src)
}
func (m *PushProofRequest) XXX_Size() int {
return xxx_messageInfo_PushProofRequest.Size(m)
}
func (m *PushProofRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PushProofRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PushProofRequest proto.InternalMessageInfo
func (m *PushProofRequest) GetProofs() []*Proof {
if m != nil {
return m.Proofs
}
return nil
}
func (m *PushProofRequest) GetRewardAddress() string {
if m != nil {
return m.RewardAddress
}
return ""
}
func (m *PushProofRequest) GetMinerAddress() string {
if m != nil {
return m.MinerAddress
}
return ""
}
type Proof struct {
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"`
ReqHash []byte `protobuf:"bytes,6,opt,name=req_hash,json=reqHash,proto3" json:"req_hash,omitempty"`
RespHash []byte `protobuf:"bytes,7,opt,name=resp_hash,json=respHash,proto3" json:"resp_hash,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_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Proof) Reset() { *m = Proof{} }
func (m *Proof) String() string { return proto.CompactTextString(m) }
func (*Proof) ProtoMessage() {}
func (*Proof) Descriptor() ([]byte, []int) {
return fileDescriptor_668f1b5e8791e33f, []int{3}
}
func (m *Proof) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Proof.Unmarshal(m, b)
}
func (m *Proof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Proof.Marshal(b, m, deterministic)
}
func (m *Proof) XXX_Merge(src proto.Message) {
xxx_messageInfo_Proof.Merge(m, src)
}
func (m *Proof) XXX_Size() int {
return xxx_messageInfo_Proof.Size(m)
}
func (m *Proof) XXX_DiscardUnknown() {
xxx_messageInfo_Proof.DiscardUnknown(m)
}
var xxx_messageInfo_Proof proto.InternalMessageInfo
func (m *Proof) GetWorkload() uint64 {
if m != nil {
return m.Workload
}
return 0
}
func (m *Proof) GetTaskId() string {
if m != nil {
return m.TaskId
}
return ""
}
func (m *Proof) GetReqHash() []byte {
if m != nil {
return m.ReqHash
}
return nil
}
func (m *Proof) GetRespHash() []byte {
if m != nil {
return m.RespHash
}
return nil
}
func (m *Proof) GetManagerSignature() []byte {
if m != nil {
return m.ManagerSignature
}
return nil
}
func (m *Proof) GetContainerSignature() []byte {
if m != nil {
return m.ContainerSignature
}
return nil
}
func (m *Proof) GetMinerSignature() []byte {
if m != nil {
return m.MinerSignature
}
return nil
}
type PushProofResponse struct {
Workload uint64 `protobuf:"varint,1,opt,name=workload,proto3" json:"workload,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PushProofResponse) Reset() { *m = PushProofResponse{} }
func (m *PushProofResponse) String() string { return proto.CompactTextString(m) }
func (*PushProofResponse) ProtoMessage() {}
func (*PushProofResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_668f1b5e8791e33f, []int{4}
}
func (m *PushProofResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PushProofResponse.Unmarshal(m, b)
}
func (m *PushProofResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PushProofResponse.Marshal(b, m, deterministic)
}
func (m *PushProofResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PushProofResponse.Merge(m, src)
}
func (m *PushProofResponse) XXX_Size() int {
return xxx_messageInfo_PushProofResponse.Size(m)
}
func (m *PushProofResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PushProofResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PushProofResponse proto.InternalMessageInfo
func (m *PushProofResponse) GetWorkload() uint64 {
if m != nil {
return m.Workload
}
return 0
}
type GetMinerProofRequest struct {
Ymd string `protobuf:"bytes,1,opt,name=ymd,proto3" json:"ymd,omitempty"`
Miner string `protobuf:"bytes,2,opt,name=miner,proto3" json:"miner,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetMinerProofRequest) Reset() { *m = GetMinerProofRequest{} }
func (m *GetMinerProofRequest) String() string { return proto.CompactTextString(m) }
func (*GetMinerProofRequest) ProtoMessage() {}
func (*GetMinerProofRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_668f1b5e8791e33f, []int{5}
}
func (m *GetMinerProofRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetMinerProofRequest.Unmarshal(m, b)
}
func (m *GetMinerProofRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetMinerProofRequest.Marshal(b, m, deterministic)
}
func (m *GetMinerProofRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetMinerProofRequest.Merge(m, src)
}
func (m *GetMinerProofRequest) XXX_Size() int {
return xxx_messageInfo_GetMinerProofRequest.Size(m)
}
func (m *GetMinerProofRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetMinerProofRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetMinerProofRequest proto.InternalMessageInfo
func (m *GetMinerProofRequest) GetYmd() string {
if m != nil {
return m.Ymd
}
return ""
}
func (m *GetMinerProofRequest) GetMiner() string {
if m != nil {
return m.Miner
}
return ""
}
type GetMinerProofResponse struct {
Workload uint64 `protobuf:"varint,1,opt,name=workload,proto3" json:"workload,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetMinerProofResponse) Reset() { *m = GetMinerProofResponse{} }
func (m *GetMinerProofResponse) String() string { return proto.CompactTextString(m) }
func (*GetMinerProofResponse) ProtoMessage() {}
func (*GetMinerProofResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_668f1b5e8791e33f, []int{6}
}
func (m *GetMinerProofResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetMinerProofResponse.Unmarshal(m, b)
}
func (m *GetMinerProofResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetMinerProofResponse.Marshal(b, m, deterministic)
}
func (m *GetMinerProofResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetMinerProofResponse.Merge(m, src)
}
func (m *GetMinerProofResponse) XXX_Size() int {
return xxx_messageInfo_GetMinerProofResponse.Size(m)
}
func (m *GetMinerProofResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetMinerProofResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetMinerProofResponse proto.InternalMessageInfo
func (m *GetMinerProofResponse) GetWorkload() uint64 {
if m != nil {
return m.Workload
}
return 0
}
func (m *GetMinerProofResponse) GetAmount() string {
if m != nil {
return m.Amount
}
return ""
}
type GetProofRequest struct {
Ymd string `protobuf:"bytes,1,opt,name=ymd,proto3" json:"ymd,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetProofRequest) Reset() { *m = GetProofRequest{} }
func (m *GetProofRequest) String() string { return proto.CompactTextString(m) }
func (*GetProofRequest) ProtoMessage() {}
func (*GetProofRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_668f1b5e8791e33f, []int{7}
}
func (m *GetProofRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetProofRequest.Unmarshal(m, b)
}
func (m *GetProofRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetProofRequest.Marshal(b, m, deterministic)
}
func (m *GetProofRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetProofRequest.Merge(m, src)
}
func (m *GetProofRequest) XXX_Size() int {
return xxx_messageInfo_GetProofRequest.Size(m)
}
func (m *GetProofRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetProofRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetProofRequest proto.InternalMessageInfo
func (m *GetProofRequest) GetYmd() string {
if m != nil {
return m.Ymd
}
return ""
}
type GetProofResponse struct {
Workload uint64 `protobuf:"varint,1,opt,name=workload,proto3" json:"workload,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetProofResponse) Reset() { *m = GetProofResponse{} }
func (m *GetProofResponse) String() string { return proto.CompactTextString(m) }
func (*GetProofResponse) ProtoMessage() {}
func (*GetProofResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_668f1b5e8791e33f, []int{8}
}
func (m *GetProofResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetProofResponse.Unmarshal(m, b)
}
func (m *GetProofResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetProofResponse.Marshal(b, m, deterministic)
}
func (m *GetProofResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetProofResponse.Merge(m, src)
}
func (m *GetProofResponse) XXX_Size() int {
return xxx_messageInfo_GetProofResponse.Size(m)
}
func (m *GetProofResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetProofResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetProofResponse proto.InternalMessageInfo
func (m *GetProofResponse) GetWorkload() uint64 {
if m != nil {
return m.Workload
}
return 0
}
type GetWithdrawProofRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetWithdrawProofRequest) Reset() { *m = GetWithdrawProofRequest{} }
func (m *GetWithdrawProofRequest) String() string { return proto.CompactTextString(m) }
func (*GetWithdrawProofRequest) ProtoMessage() {}
func (*GetWithdrawProofRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_668f1b5e8791e33f, []int{9}
}
func (m *GetWithdrawProofRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetWithdrawProofRequest.Unmarshal(m, b)
}
func (m *GetWithdrawProofRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetWithdrawProofRequest.Marshal(b, m, deterministic)
}
func (m *GetWithdrawProofRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetWithdrawProofRequest.Merge(m, src)
}
func (m *GetWithdrawProofRequest) XXX_Size() int {
return xxx_messageInfo_GetWithdrawProofRequest.Size(m)
}
func (m *GetWithdrawProofRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetWithdrawProofRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetWithdrawProofRequest proto.InternalMessageInfo
func (m *GetWithdrawProofRequest) GetAddress() string {
if m != nil {
return m.Address
}
return ""
}
type GetWithdrawProofResponse struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
MerkleProof []string `protobuf:"bytes,3,rep,name=merkleProof,proto3" json:"merkleProof,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetWithdrawProofResponse) Reset() { *m = GetWithdrawProofResponse{} }
func (m *GetWithdrawProofResponse) String() string { return proto.CompactTextString(m) }
func (*GetWithdrawProofResponse) ProtoMessage() {}
func (*GetWithdrawProofResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_668f1b5e8791e33f, []int{10}
}
func (m *GetWithdrawProofResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetWithdrawProofResponse.Unmarshal(m, b)
}
func (m *GetWithdrawProofResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetWithdrawProofResponse.Marshal(b, m, deterministic)
}
func (m *GetWithdrawProofResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetWithdrawProofResponse.Merge(m, src)
}
func (m *GetWithdrawProofResponse) XXX_Size() int {
return xxx_messageInfo_GetWithdrawProofResponse.Size(m)
}
func (m *GetWithdrawProofResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetWithdrawProofResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetWithdrawProofResponse proto.InternalMessageInfo
func (m *GetWithdrawProofResponse) GetAddress() string {
if m != nil {
return m.Address
}
return ""
}
func (m *GetWithdrawProofResponse) GetAmount() string {
if m != nil {
return m.Amount
}
return ""
}
func (m *GetWithdrawProofResponse) GetMerkleProof() []string {
if m != nil {
return m.MerkleProof
}
return nil
}
func init() {
proto.RegisterType((*ValidatorStatusRequest)(nil), "validator.v1.ValidatorStatusRequest")
proto.RegisterType((*ValidatorStatusResponse)(nil), "validator.v1.ValidatorStatusResponse")
proto.RegisterType((*PushProofRequest)(nil), "validator.v1.PushProofRequest")
proto.RegisterType((*Proof)(nil), "validator.v1.Proof")
proto.RegisterType((*PushProofResponse)(nil), "validator.v1.PushProofResponse")
proto.RegisterType((*GetMinerProofRequest)(nil), "validator.v1.GetMinerProofRequest")
proto.RegisterType((*GetMinerProofResponse)(nil), "validator.v1.GetMinerProofResponse")
proto.RegisterType((*GetProofRequest)(nil), "validator.v1.GetProofRequest")
proto.RegisterType((*GetProofResponse)(nil), "validator.v1.GetProofResponse")
proto.RegisterType((*GetWithdrawProofRequest)(nil), "validator.v1.GetWithdrawProofRequest")
proto.RegisterType((*GetWithdrawProofResponse)(nil), "validator.v1.GetWithdrawProofResponse")
}
func init() {
proto.RegisterFile("validator/v1/request_response.proto", fileDescriptor_668f1b5e8791e33f)
}
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, 0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0x00, 0x00, 0x00,
0xff, 0xff, 0x63, 0x44, 0xe2, 0xd7, 0xb6, 0x04, 0x00, 0x00,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: validator/v1/resource.proto
package validatorv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type ValidatedProof struct {
Balance uint64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"`
Workload uint64 `protobuf:"varint,2,opt,name=workload,proto3" json:"workload,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ValidatedProof) Reset() { *m = ValidatedProof{} }
func (m *ValidatedProof) String() string { return proto.CompactTextString(m) }
func (*ValidatedProof) ProtoMessage() {}
func (*ValidatedProof) Descriptor() ([]byte, []int) {
return fileDescriptor_f97d5d703a2bfce9, []int{0}
}
func (m *ValidatedProof) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ValidatedProof.Unmarshal(m, b)
}
func (m *ValidatedProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ValidatedProof.Marshal(b, m, deterministic)
}
func (m *ValidatedProof) XXX_Merge(src proto.Message) {
xxx_messageInfo_ValidatedProof.Merge(m, src)
}
func (m *ValidatedProof) XXX_Size() int {
return xxx_messageInfo_ValidatedProof.Size(m)
}
func (m *ValidatedProof) XXX_DiscardUnknown() {
xxx_messageInfo_ValidatedProof.DiscardUnknown(m)
}
var xxx_messageInfo_ValidatedProof proto.InternalMessageInfo
func (m *ValidatedProof) GetBalance() uint64 {
if m != nil {
return m.Balance
}
return 0
}
func (m *ValidatedProof) GetWorkload() uint64 {
if m != nil {
return m.Workload
}
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"`
Workload uint64 `protobuf:"varint,3,opt,name=workload,proto3" json:"workload,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MinerObject) Reset() { *m = MinerObject{} }
func (m *MinerObject) String() string { return proto.CompactTextString(m) }
func (*MinerObject) ProtoMessage() {}
func (*MinerObject) Descriptor() ([]byte, []int) {
return fileDescriptor_f97d5d703a2bfce9, []int{1}
}
func (m *MinerObject) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MinerObject.Unmarshal(m, b)
}
func (m *MinerObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MinerObject.Marshal(b, m, deterministic)
}
func (m *MinerObject) XXX_Merge(src proto.Message) {
xxx_messageInfo_MinerObject.Merge(m, src)
}
func (m *MinerObject) XXX_Size() int {
return xxx_messageInfo_MinerObject.Size(m)
}
func (m *MinerObject) XXX_DiscardUnknown() {
xxx_messageInfo_MinerObject.DiscardUnknown(m)
}
var xxx_messageInfo_MinerObject proto.InternalMessageInfo
func (m *MinerObject) GetMiner() string {
if m != nil {
return m.Miner
}
return ""
}
func (m *MinerObject) GetBalance() uint64 {
if m != nil {
return m.Balance
}
return 0
}
func (m *MinerObject) GetWorkload() uint64 {
if m != nil {
return m.Workload
}
return 0
}
func init() {
proto.RegisterType((*ValidatedProof)(nil), "validator.v1.ValidatedProof")
proto.RegisterType((*MinerObject)(nil), "validator.v1.MinerObject")
}
func init() { proto.RegisterFile("validator/v1/resource.proto", fileDescriptor_f97d5d703a2bfce9) }
var fileDescriptor_f97d5d703a2bfce9 = []byte{
// 268 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x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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,
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: validator/v1/service.proto
package validatorv1
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("validator/v1/service.proto", fileDescriptor_2394d88e128af63d) }
var fileDescriptor_2394d88e128af63d = []byte{
// 337 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x41, 0x4e, 0xc2, 0x40,
0x14, 0x86, 0xa5, 0x24, 0x46, 0x27, 0x10, 0x49, 0x57, 0x86, 0x44, 0x4c, 0x40, 0xdc, 0xd9, 0x49,
0x75, 0x87, 0x3b, 0x36, 0x5d, 0x10, 0x4c, 0xa3, 0x49, 0x25, 0x84, 0x44, 0x87, 0xf6, 0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b, 0x89, 0xd4, 0x42, 0x3e, 0x37, 0xf2, 0xdd, 0xca, 0xea, 0xba,
0xfe, 0xcf, 0xdd, 0xfd, 0xd2, 0xb0, 0x37, 0x89, 0x71, 0x9a, 0x8c, 0x9d, 0x90, 0xcf, 0x29, 0x8f,
0x9e, 0xa5, 0x84, 0x44, 0xea, 0x8f, 0xb3, 0xec, 0x75, 0x84, 0x7c, 0x46, 0x27, 0xb0, 0xa0, 0xd9,
0x40, 0x27, 0x9c, 0x16, 0x5f, 0xd4, 0xa5, 0x1e, 0x52, 0xf7, 0xc5, 0x2a, 0x07, 0x83, 0xc1, 0xab,
0x55, 0xd1, 0x17, 0x77, 0x02, 0xf7, 0xbd, 0x30, 0x8e, 0x02, 0xf7, 0xd3, 0x3a, 0x2c, 0x8e, 0x23,
0xcf, 0xef, 0xf6, 0x01, 0x59, 0xc4, 0x90, 0x7d, 0x59, 0x55, 0x8d, 0x3a, 0x9d, 0xc0, 0x1d, 0xef,
0x66, 0x1b, 0x2f, 0xbe, 0x03, 0x00, 0x00, 0xff, 0xff, 0xbb, 0xc9, 0xd4, 0xb3, 0xed, 0x02, 0x00,
0x00,
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc (unknown)
// source: validator/v1/service.proto
package validatorv1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// ValidatorServiceClient is the client API for ValidatorService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type ValidatorServiceClient interface {
ValidatorStatus(ctx context.Context, in *ValidatorStatusRequest, opts ...grpc.CallOption) (*ValidatorStatusResponse, error)
PushProof(ctx context.Context, in *PushProofRequest, opts ...grpc.CallOption) (*PushProofResponse, error)
GetMinerProof(ctx context.Context, in *GetMinerProofRequest, opts ...grpc.CallOption) (*GetMinerProofResponse, error)
GetProof(ctx context.Context, in *GetProofRequest, opts ...grpc.CallOption) (*GetProofResponse, error)
GetWithdrawProof(ctx context.Context, in *GetWithdrawProofRequest, opts ...grpc.CallOption) (*GetWithdrawProofResponse, error)
}
type validatorServiceClient struct {
cc grpc.ClientConnInterface
}
func NewValidatorServiceClient(cc grpc.ClientConnInterface) ValidatorServiceClient {
return &validatorServiceClient{cc}
}
func (c *validatorServiceClient) ValidatorStatus(ctx context.Context, in *ValidatorStatusRequest, opts ...grpc.CallOption) (*ValidatorStatusResponse, error) {
out := new(ValidatorStatusResponse)
err := c.cc.Invoke(ctx, "/validator.v1.ValidatorService/ValidatorStatus", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *validatorServiceClient) PushProof(ctx context.Context, in *PushProofRequest, opts ...grpc.CallOption) (*PushProofResponse, error) {
out := new(PushProofResponse)
err := c.cc.Invoke(ctx, "/validator.v1.ValidatorService/PushProof", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *validatorServiceClient) GetMinerProof(ctx context.Context, in *GetMinerProofRequest, opts ...grpc.CallOption) (*GetMinerProofResponse, error) {
out := new(GetMinerProofResponse)
err := c.cc.Invoke(ctx, "/validator.v1.ValidatorService/GetMinerProof", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *validatorServiceClient) GetProof(ctx context.Context, in *GetProofRequest, opts ...grpc.CallOption) (*GetProofResponse, error) {
out := new(GetProofResponse)
err := c.cc.Invoke(ctx, "/validator.v1.ValidatorService/GetProof", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *validatorServiceClient) GetWithdrawProof(ctx context.Context, in *GetWithdrawProofRequest, opts ...grpc.CallOption) (*GetWithdrawProofResponse, error) {
out := new(GetWithdrawProofResponse)
err := c.cc.Invoke(ctx, "/validator.v1.ValidatorService/GetWithdrawProof", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ValidatorServiceServer is the server API for ValidatorService service.
// All implementations must embed UnimplementedValidatorServiceServer
// for forward compatibility
type ValidatorServiceServer interface {
ValidatorStatus(context.Context, *ValidatorStatusRequest) (*ValidatorStatusResponse, error)
PushProof(context.Context, *PushProofRequest) (*PushProofResponse, error)
GetMinerProof(context.Context, *GetMinerProofRequest) (*GetMinerProofResponse, error)
GetProof(context.Context, *GetProofRequest) (*GetProofResponse, error)
GetWithdrawProof(context.Context, *GetWithdrawProofRequest) (*GetWithdrawProofResponse, error)
mustEmbedUnimplementedValidatorServiceServer()
}
// UnimplementedValidatorServiceServer must be embedded to have forward compatible implementations.
type UnimplementedValidatorServiceServer struct {
}
func (UnimplementedValidatorServiceServer) ValidatorStatus(context.Context, *ValidatorStatusRequest) (*ValidatorStatusResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ValidatorStatus not implemented")
}
func (UnimplementedValidatorServiceServer) PushProof(context.Context, *PushProofRequest) (*PushProofResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method PushProof not implemented")
}
func (UnimplementedValidatorServiceServer) GetMinerProof(context.Context, *GetMinerProofRequest) (*GetMinerProofResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMinerProof not implemented")
}
func (UnimplementedValidatorServiceServer) GetProof(context.Context, *GetProofRequest) (*GetProofResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetProof not implemented")
}
func (UnimplementedValidatorServiceServer) GetWithdrawProof(context.Context, *GetWithdrawProofRequest) (*GetWithdrawProofResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetWithdrawProof not implemented")
}
func (UnimplementedValidatorServiceServer) mustEmbedUnimplementedValidatorServiceServer() {}
// UnsafeValidatorServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ValidatorServiceServer will
// result in compilation errors.
type UnsafeValidatorServiceServer interface {
mustEmbedUnimplementedValidatorServiceServer()
}
func RegisterValidatorServiceServer(s grpc.ServiceRegistrar, srv ValidatorServiceServer) {
s.RegisterService(&ValidatorService_ServiceDesc, srv)
}
func _ValidatorService_ValidatorStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ValidatorStatusRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ValidatorServiceServer).ValidatorStatus(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/validator.v1.ValidatorService/ValidatorStatus",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ValidatorServiceServer).ValidatorStatus(ctx, req.(*ValidatorStatusRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ValidatorService_PushProof_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PushProofRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ValidatorServiceServer).PushProof(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/validator.v1.ValidatorService/PushProof",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ValidatorServiceServer).PushProof(ctx, req.(*PushProofRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ValidatorService_GetMinerProof_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetMinerProofRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ValidatorServiceServer).GetMinerProof(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/validator.v1.ValidatorService/GetMinerProof",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ValidatorServiceServer).GetMinerProof(ctx, req.(*GetMinerProofRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ValidatorService_GetProof_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetProofRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ValidatorServiceServer).GetProof(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/validator.v1.ValidatorService/GetProof",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ValidatorServiceServer).GetProof(ctx, req.(*GetProofRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ValidatorService_GetWithdrawProof_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetWithdrawProofRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ValidatorServiceServer).GetWithdrawProof(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/validator.v1.ValidatorService/GetWithdrawProof",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ValidatorServiceServer).GetWithdrawProof(ctx, req.(*GetWithdrawProofRequest))
}
return interceptor(ctx, in, info, handler)
}
// ValidatorService_ServiceDesc is the grpc.ServiceDesc for ValidatorService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ValidatorService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "validator.v1.ValidatorService",
HandlerType: (*ValidatorServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ValidatorStatus",
Handler: _ValidatorService_ValidatorStatus_Handler,
},
{
MethodName: "PushProof",
Handler: _ValidatorService_PushProof_Handler,
},
{
MethodName: "GetMinerProof",
Handler: _ValidatorService_GetMinerProof_Handler,
},
{
MethodName: "GetProof",
Handler: _ValidatorService_GetProof_Handler,
},
{
MethodName: "GetWithdrawProof",
Handler: _ValidatorService_GetWithdrawProof_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "validator/v1/service.proto",
}
...@@ -23,6 +23,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package ...@@ -23,6 +23,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type ValidatedProof struct { type ValidatedProof struct {
Balance uint64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"` Balance uint64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"`
Workload uint64 `protobuf:"varint,2,opt,name=workload,proto3" json:"workload,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_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
...@@ -66,6 +67,13 @@ func (m *ValidatedProof) GetWorkload() uint64 { ...@@ -66,6 +67,13 @@ func (m *ValidatedProof) GetWorkload() uint64 {
return 0 return 0
} }
func (m *ValidatedProof) GetTimestamp() uint64 {
if m != nil {
return m.Timestamp
}
return 0
}
type MinerObject struct { type MinerObject struct {
Miner string `protobuf:"bytes,1,opt,name=miner,proto3" json:"miner,omitempty"` 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 uint64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
...@@ -128,22 +136,23 @@ func init() { ...@@ -128,22 +136,23 @@ func init() {
func init() { proto.RegisterFile("witness/v1/resource.proto", fileDescriptor_8558ebcb7c19658f) } func init() { proto.RegisterFile("witness/v1/resource.proto", fileDescriptor_8558ebcb7c19658f) }
var fileDescriptor_8558ebcb7c19658f = []byte{ var fileDescriptor_8558ebcb7c19658f = []byte{
// 270 bytes of a gzipped FileDescriptorProto // 285 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2c, 0xcf, 0x2c, 0xc9, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xbd, 0x4e, 0xc3, 0x30,
0x4b, 0x2d, 0x2e, 0xd6, 0x2f, 0x33, 0xd4, 0x2f, 0x4a, 0x2d, 0xce, 0x2f, 0x2d, 0x4a, 0x4e, 0xd5, 0x14, 0x85, 0x15, 0x97, 0xbf, 0xba, 0xa2, 0x43, 0x84, 0x50, 0x40, 0x0c, 0xa8, 0x13, 0x0b, 0xb1,
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x82, 0x4a, 0xe9, 0x95, 0x19, 0x2a, 0xb9, 0x71, 0xf1, 0x2c, 0xb6, 0xb2, 0x75, 0xe9, 0x54, 0x11, 0x75, 0x48, 0x0b, 0xea, 0xe2, 0xd8, 0x97, 0x10, 0x48,
0x85, 0x25, 0xe6, 0x64, 0xa6, 0x24, 0x96, 0xa4, 0xa6, 0x04, 0x14, 0xe5, 0xe7, 0xa7, 0x09, 0x49, 0x72, 0x2b, 0xdb, 0x49, 0xc5, 0xeb, 0x30, 0xb2, 0xf1, 0x1a, 0x3c, 0x06, 0x23, 0x4f, 0x81, 0x6a,
0x70, 0xb1, 0x27, 0x25, 0xe6, 0x24, 0xe6, 0x25, 0xa7, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0xb0, 0x04, 0x42, 0x02, 0x03, 0xdb, 0xfd, 0xee, 0x19, 0x3e, 0x9d, 0x43, 0x4f, 0x36, 0x99, 0x2d, 0xc1, 0x18,
0xc1, 0xb8, 0x42, 0x52, 0x5c, 0x1c, 0xe5, 0xf9, 0x45, 0xd9, 0x39, 0xf9, 0x89, 0x29, 0x12, 0x4c, 0x56, 0x73, 0xa6, 0xc1, 0x60, 0xa5, 0x25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@@ -5,6 +5,7 @@ package witness.v1; ...@@ -5,6 +5,7 @@ package witness.v1;
message ValidatedProof { message ValidatedProof {
uint64 balance = 1; uint64 balance = 1;
uint64 workload = 2; uint64 workload = 2;
uint64 timestamp = 3;
} }
message MinerObject { message MinerObject {
......
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