|
|
|
@ -1,12 +1,13 @@ |
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// versions:
|
|
|
|
|
// protoc-gen-go v1.27.1
|
|
|
|
|
// protoc v3.21.2
|
|
|
|
|
// source: messages.proto
|
|
|
|
|
// protoc-gen-go v1.25.0
|
|
|
|
|
// protoc v3.21.9
|
|
|
|
|
// source: messages/proto/messages.proto
|
|
|
|
|
|
|
|
|
|
package proto |
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
|
proto "github.com/golang/protobuf/proto" |
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
|
|
|
|
reflect "reflect" |
|
|
|
@ -20,6 +21,10 @@ const ( |
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
|
|
// of the legacy proto package is being used.
|
|
|
|
|
const _ = proto.ProtoPackageIsVersion4 |
|
|
|
|
|
|
|
|
|
// MessageType defines the types of messages
|
|
|
|
|
// circulating in the system
|
|
|
|
|
type MessageType int32 |
|
|
|
@ -58,11 +63,11 @@ func (x MessageType) String() string { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (MessageType) Descriptor() protoreflect.EnumDescriptor { |
|
|
|
|
return file_messages_proto_enumTypes[0].Descriptor() |
|
|
|
|
return file_messages_proto_messages_proto_enumTypes[0].Descriptor() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (MessageType) Type() protoreflect.EnumType { |
|
|
|
|
return &file_messages_proto_enumTypes[0] |
|
|
|
|
return &file_messages_proto_messages_proto_enumTypes[0] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x MessageType) Number() protoreflect.EnumNumber { |
|
|
|
@ -71,7 +76,7 @@ func (x MessageType) Number() protoreflect.EnumNumber { |
|
|
|
|
|
|
|
|
|
// Deprecated: Use MessageType.Descriptor instead.
|
|
|
|
|
func (MessageType) EnumDescriptor() ([]byte, []int) { |
|
|
|
|
return file_messages_proto_rawDescGZIP(), []int{0} |
|
|
|
|
return file_messages_proto_messages_proto_rawDescGZIP(), []int{0} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// View defines the current status
|
|
|
|
@ -89,7 +94,7 @@ type View struct { |
|
|
|
|
func (x *View) Reset() { |
|
|
|
|
*x = View{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_messages_proto_msgTypes[0] |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[0] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
@ -102,7 +107,7 @@ func (x *View) String() string { |
|
|
|
|
func (*View) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *View) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_messages_proto_msgTypes[0] |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[0] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
@ -115,7 +120,7 @@ func (x *View) ProtoReflect() protoreflect.Message { |
|
|
|
|
|
|
|
|
|
// Deprecated: Use View.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*View) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_messages_proto_rawDescGZIP(), []int{0} |
|
|
|
|
return file_messages_proto_messages_proto_rawDescGZIP(), []int{0} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *View) GetHeight() uint64 { |
|
|
|
@ -159,7 +164,7 @@ type Message struct { |
|
|
|
|
func (x *Message) Reset() { |
|
|
|
|
*x = Message{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_messages_proto_msgTypes[1] |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[1] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
@ -172,7 +177,7 @@ func (x *Message) String() string { |
|
|
|
|
func (*Message) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *Message) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_messages_proto_msgTypes[1] |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[1] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
@ -185,7 +190,7 @@ func (x *Message) ProtoReflect() protoreflect.Message { |
|
|
|
|
|
|
|
|
|
// Deprecated: Use Message.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*Message) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_messages_proto_rawDescGZIP(), []int{1} |
|
|
|
|
return file_messages_proto_messages_proto_rawDescGZIP(), []int{1} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *Message) GetView() *View { |
|
|
|
@ -286,7 +291,7 @@ type PrePrepareMessage struct { |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
// proposal is the actual data being proposed for consensus
|
|
|
|
|
Proposal []byte `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` |
|
|
|
|
Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` |
|
|
|
|
// proposalHash is the Keccak hash of the proposal
|
|
|
|
|
ProposalHash []byte `protobuf:"bytes,2,opt,name=proposalHash,proto3" json:"proposalHash,omitempty"` |
|
|
|
|
// certificate is the RCC that can accompany
|
|
|
|
@ -297,7 +302,7 @@ type PrePrepareMessage struct { |
|
|
|
|
func (x *PrePrepareMessage) Reset() { |
|
|
|
|
*x = PrePrepareMessage{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_messages_proto_msgTypes[2] |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[2] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
@ -310,7 +315,7 @@ func (x *PrePrepareMessage) String() string { |
|
|
|
|
func (*PrePrepareMessage) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *PrePrepareMessage) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_messages_proto_msgTypes[2] |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[2] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
@ -323,10 +328,10 @@ func (x *PrePrepareMessage) ProtoReflect() protoreflect.Message { |
|
|
|
|
|
|
|
|
|
// Deprecated: Use PrePrepareMessage.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*PrePrepareMessage) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_messages_proto_rawDescGZIP(), []int{2} |
|
|
|
|
return file_messages_proto_messages_proto_rawDescGZIP(), []int{2} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *PrePrepareMessage) GetProposal() []byte { |
|
|
|
|
func (x *PrePrepareMessage) GetProposal() *Proposal { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.Proposal |
|
|
|
|
} |
|
|
|
@ -360,7 +365,7 @@ type PrepareMessage struct { |
|
|
|
|
func (x *PrepareMessage) Reset() { |
|
|
|
|
*x = PrepareMessage{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_messages_proto_msgTypes[3] |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[3] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
@ -373,7 +378,7 @@ func (x *PrepareMessage) String() string { |
|
|
|
|
func (*PrepareMessage) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *PrepareMessage) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_messages_proto_msgTypes[3] |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[3] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
@ -386,7 +391,7 @@ func (x *PrepareMessage) ProtoReflect() protoreflect.Message { |
|
|
|
|
|
|
|
|
|
// Deprecated: Use PrepareMessage.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*PrepareMessage) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_messages_proto_rawDescGZIP(), []int{3} |
|
|
|
|
return file_messages_proto_messages_proto_rawDescGZIP(), []int{3} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *PrepareMessage) GetProposalHash() []byte { |
|
|
|
@ -411,7 +416,7 @@ type CommitMessage struct { |
|
|
|
|
func (x *CommitMessage) Reset() { |
|
|
|
|
*x = CommitMessage{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_messages_proto_msgTypes[4] |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[4] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
@ -424,7 +429,7 @@ func (x *CommitMessage) String() string { |
|
|
|
|
func (*CommitMessage) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *CommitMessage) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_messages_proto_msgTypes[4] |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[4] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
@ -437,7 +442,7 @@ func (x *CommitMessage) ProtoReflect() protoreflect.Message { |
|
|
|
|
|
|
|
|
|
// Deprecated: Use CommitMessage.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CommitMessage) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_messages_proto_rawDescGZIP(), []int{4} |
|
|
|
|
return file_messages_proto_messages_proto_rawDescGZIP(), []int{4} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *CommitMessage) GetProposalHash() []byte { |
|
|
|
@ -460,9 +465,9 @@ type RoundChangeMessage struct { |
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
// lastPreparedProposedBlock is the last block
|
|
|
|
|
// lastProposal is the last proposal
|
|
|
|
|
// to reach Q(N) - 1 PREPARE messages
|
|
|
|
|
LastPreparedProposedBlock []byte `protobuf:"bytes,1,opt,name=lastPreparedProposedBlock,proto3" json:"lastPreparedProposedBlock,omitempty"` |
|
|
|
|
LastPreparedProposal *Proposal `protobuf:"bytes,1,opt,name=lastPreparedProposal,proto3" json:"lastPreparedProposal,omitempty"` |
|
|
|
|
// latestPreparedCertificate is the PC that accompanies
|
|
|
|
|
// the last proposal
|
|
|
|
|
LatestPreparedCertificate *PreparedCertificate `protobuf:"bytes,2,opt,name=latestPreparedCertificate,proto3" json:"latestPreparedCertificate,omitempty"` |
|
|
|
@ -471,7 +476,7 @@ type RoundChangeMessage struct { |
|
|
|
|
func (x *RoundChangeMessage) Reset() { |
|
|
|
|
*x = RoundChangeMessage{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_messages_proto_msgTypes[5] |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[5] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
@ -484,7 +489,7 @@ func (x *RoundChangeMessage) String() string { |
|
|
|
|
func (*RoundChangeMessage) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *RoundChangeMessage) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_messages_proto_msgTypes[5] |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[5] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
@ -497,12 +502,12 @@ func (x *RoundChangeMessage) ProtoReflect() protoreflect.Message { |
|
|
|
|
|
|
|
|
|
// Deprecated: Use RoundChangeMessage.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*RoundChangeMessage) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_messages_proto_rawDescGZIP(), []int{5} |
|
|
|
|
return file_messages_proto_messages_proto_rawDescGZIP(), []int{5} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *RoundChangeMessage) GetLastPreparedProposedBlock() []byte { |
|
|
|
|
func (x *RoundChangeMessage) GetLastPreparedProposal() *Proposal { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.LastPreparedProposedBlock |
|
|
|
|
return x.LastPreparedProposal |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
@ -531,7 +536,7 @@ type PreparedCertificate struct { |
|
|
|
|
func (x *PreparedCertificate) Reset() { |
|
|
|
|
*x = PreparedCertificate{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_messages_proto_msgTypes[6] |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[6] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
@ -544,7 +549,7 @@ func (x *PreparedCertificate) String() string { |
|
|
|
|
func (*PreparedCertificate) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *PreparedCertificate) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_messages_proto_msgTypes[6] |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[6] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
@ -557,7 +562,7 @@ func (x *PreparedCertificate) ProtoReflect() protoreflect.Message { |
|
|
|
|
|
|
|
|
|
// Deprecated: Use PreparedCertificate.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*PreparedCertificate) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_messages_proto_rawDescGZIP(), []int{6} |
|
|
|
|
return file_messages_proto_messages_proto_rawDescGZIP(), []int{6} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *PreparedCertificate) GetProposalMessage() *Message { |
|
|
|
@ -588,7 +593,7 @@ type RoundChangeCertificate struct { |
|
|
|
|
func (x *RoundChangeCertificate) Reset() { |
|
|
|
|
*x = RoundChangeCertificate{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_messages_proto_msgTypes[7] |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[7] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
@ -601,7 +606,7 @@ func (x *RoundChangeCertificate) String() string { |
|
|
|
|
func (*RoundChangeCertificate) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *RoundChangeCertificate) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_messages_proto_msgTypes[7] |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[7] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
@ -614,7 +619,7 @@ func (x *RoundChangeCertificate) ProtoReflect() protoreflect.Message { |
|
|
|
|
|
|
|
|
|
// Deprecated: Use RoundChangeCertificate.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*RoundChangeCertificate) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_messages_proto_rawDescGZIP(), []int{7} |
|
|
|
|
return file_messages_proto_messages_proto_rawDescGZIP(), []int{7} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *RoundChangeCertificate) GetRoundChangeMessages() []*Message { |
|
|
|
@ -624,102 +629,166 @@ func (x *RoundChangeCertificate) GetRoundChangeMessages() []*Message { |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var File_messages_proto protoreflect.FileDescriptor |
|
|
|
|
|
|
|
|
|
var file_messages_proto_rawDesc = []byte{ |
|
|
|
|
0x0a, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
|
|
|
|
0x22, 0x34, 0x0a, 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, |
|
|
|
|
0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, |
|
|
|
|
0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, |
|
|
|
|
0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x22, 0xe9, 0x02, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, |
|
|
|
|
0x67, 0x65, 0x12, 0x19, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, |
|
|
|
|
0x32, 0x05, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x12, 0x12, 0x0a, |
|
|
|
|
0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x66, 0x72, 0x6f, |
|
|
|
|
0x6d, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, |
|
|
|
|
0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, |
|
|
|
|
0x20, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, |
|
|
|
|
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, |
|
|
|
|
0x65, 0x12, 0x3c, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x44, |
|
|
|
|
0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x50, 0x72, 0x65, 0x50, |
|
|
|
|
0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, |
|
|
|
|
0x0e, 0x70, 0x72, 0x65, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, |
|
|
|
|
0x33, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x18, 0x06, |
|
|
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x4d, 0x65, |
|
|
|
|
0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, |
|
|
|
|
0x44, 0x61, 0x74, 0x61, 0x12, 0x30, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x61, |
|
|
|
|
0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, |
|
|
|
|
0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, |
|
|
|
|
0x69, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x3f, 0x0a, 0x0f, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x43, |
|
|
|
|
0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, |
|
|
|
|
0x13, 0x2e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x65, 0x73, |
|
|
|
|
0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x68, 0x61, |
|
|
|
|
0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, |
|
|
|
|
0x61, 0x64, 0x22, 0x8e, 0x01, 0x0a, 0x11, 0x50, 0x72, 0x65, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, |
|
|
|
|
0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, |
|
|
|
|
0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, |
|
|
|
|
0x6f, 0x73, 0x61, 0x6c, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, |
|
|
|
|
0x48, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x70, |
|
|
|
|
0x6f, 0x73, 0x61, 0x6c, 0x48, 0x61, 0x73, 0x68, 0x12, 0x39, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, |
|
|
|
|
0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, |
|
|
|
|
0x52, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, |
|
|
|
|
0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, |
|
|
|
|
0x61, 0x74, 0x65, 0x22, 0x34, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x4d, 0x65, |
|
|
|
|
0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, |
|
|
|
|
0x6c, 0x48, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x72, 0x6f, |
|
|
|
|
0x70, 0x6f, 0x73, 0x61, 0x6c, 0x48, 0x61, 0x73, 0x68, 0x22, 0x59, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, |
|
|
|
|
0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, |
|
|
|
|
0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x48, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, |
|
|
|
|
0x52, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x48, 0x61, 0x73, 0x68, 0x12, 0x24, |
|
|
|
|
0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x53, 0x65, 0x61, 0x6c, 0x18, |
|
|
|
|
0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, |
|
|
|
|
0x53, 0x65, 0x61, 0x6c, 0x22, 0xa6, 0x01, 0x0a, 0x12, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x68, |
|
|
|
|
0x61, 0x6e, 0x67, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3c, 0x0a, 0x19, 0x6c, |
|
|
|
|
0x61, 0x73, 0x74, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x6f, |
|
|
|
|
0x73, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x19, |
|
|
|
|
// Proposal is the tuple (raw_proposal, round)
|
|
|
|
|
type Proposal struct { |
|
|
|
|
state protoimpl.MessageState |
|
|
|
|
sizeCache protoimpl.SizeCache |
|
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
|
|
// rawProposal is an original proposal like block
|
|
|
|
|
RawProposal []byte `protobuf:"bytes,1,opt,name=rawProposal,proto3" json:"rawProposal,omitempty"` |
|
|
|
|
// round is the round for which the proposal is created
|
|
|
|
|
Round uint64 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *Proposal) Reset() { |
|
|
|
|
*x = Proposal{} |
|
|
|
|
if protoimpl.UnsafeEnabled { |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[8] |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *Proposal) String() string { |
|
|
|
|
return protoimpl.X.MessageStringOf(x) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (*Proposal) ProtoMessage() {} |
|
|
|
|
|
|
|
|
|
func (x *Proposal) ProtoReflect() protoreflect.Message { |
|
|
|
|
mi := &file_messages_proto_messages_proto_msgTypes[8] |
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|
|
|
|
if ms.LoadMessageInfo() == nil { |
|
|
|
|
ms.StoreMessageInfo(mi) |
|
|
|
|
} |
|
|
|
|
return ms |
|
|
|
|
} |
|
|
|
|
return mi.MessageOf(x) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Deprecated: Use Proposal.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*Proposal) Descriptor() ([]byte, []int) { |
|
|
|
|
return file_messages_proto_messages_proto_rawDescGZIP(), []int{8} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *Proposal) GetRawProposal() []byte { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.RawProposal |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x *Proposal) GetRound() uint64 { |
|
|
|
|
if x != nil { |
|
|
|
|
return x.Round |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var File_messages_proto_messages_proto protoreflect.FileDescriptor |
|
|
|
|
|
|
|
|
|
var file_messages_proto_messages_proto_rawDesc = []byte{ |
|
|
|
|
0x0a, 0x1d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
|
|
|
|
0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, |
|
|
|
|
0x34, 0x0a, 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, |
|
|
|
|
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, |
|
|
|
|
0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, |
|
|
|
|
0x72, 0x6f, 0x75, 0x6e, 0x64, 0x22, 0xe9, 0x02, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, |
|
|
|
|
0x65, 0x12, 0x19, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, |
|
|
|
|
0x05, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x12, 0x12, 0x0a, 0x04, |
|
|
|
|
0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, |
|
|
|
|
0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, |
|
|
|
|
0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x20, |
|
|
|
|
0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x4d, |
|
|
|
|
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, |
|
|
|
|
0x12, 0x3c, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x44, 0x61, |
|
|
|
|
0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x50, 0x72, 0x65, 0x50, 0x72, |
|
|
|
|
0x65, 0x70, 0x61, 0x72, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0e, |
|
|
|
|
0x70, 0x72, 0x65, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x33, |
|
|
|
|
0x0a, 0x0b, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, |
|
|
|
|
0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x4d, 0x65, 0x73, |
|
|
|
|
0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x44, |
|
|
|
|
0x61, 0x74, 0x61, 0x12, 0x30, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x44, 0x61, 0x74, |
|
|
|
|
0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, |
|
|
|
|
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, |
|
|
|
|
0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x3f, 0x0a, 0x0f, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x68, |
|
|
|
|
0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, |
|
|
|
|
0x2e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x65, 0x73, 0x73, |
|
|
|
|
0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, |
|
|
|
|
0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, |
|
|
|
|
0x64, 0x22, 0x99, 0x01, 0x0a, 0x11, 0x50, 0x72, 0x65, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, |
|
|
|
|
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, |
|
|
|
|
0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x50, 0x72, 0x6f, 0x70, |
|
|
|
|
0x6f, 0x73, 0x61, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x22, |
|
|
|
|
0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x48, 0x61, 0x73, 0x68, 0x18, 0x02, |
|
|
|
|
0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x48, 0x61, |
|
|
|
|
0x73, 0x68, 0x12, 0x39, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, |
|
|
|
|
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x43, |
|
|
|
|
0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, |
|
|
|
|
0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x22, 0x34, 0x0a, |
|
|
|
|
0x0e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, |
|
|
|
|
0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x48, 0x61, 0x73, 0x68, 0x18, |
|
|
|
|
0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x48, |
|
|
|
|
0x61, 0x73, 0x68, 0x22, 0x59, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, |
|
|
|
|
0x73, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, |
|
|
|
|
0x48, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x70, |
|
|
|
|
0x6f, 0x73, 0x61, 0x6c, 0x48, 0x61, 0x73, 0x68, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, |
|
|
|
|
0x69, 0x74, 0x74, 0x65, 0x64, 0x53, 0x65, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, |
|
|
|
|
0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x53, 0x65, 0x61, 0x6c, 0x22, 0xa7, |
|
|
|
|
0x01, 0x0a, 0x12, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x65, |
|
|
|
|
0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3d, 0x0a, 0x14, 0x6c, 0x61, 0x73, 0x74, 0x50, 0x72, 0x65, |
|
|
|
|
0x70, 0x61, 0x72, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, |
|
|
|
|
0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x14, |
|
|
|
|
0x6c, 0x61, 0x73, 0x74, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x70, |
|
|
|
|
0x6f, 0x73, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x52, 0x0a, 0x19, 0x6c, 0x61, 0x74, |
|
|
|
|
0x65, 0x73, 0x74, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, |
|
|
|
|
0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x50, |
|
|
|
|
0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, |
|
|
|
|
0x74, 0x65, 0x52, 0x19, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, |
|
|
|
|
0x65, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x22, 0x7d, 0x0a, |
|
|
|
|
0x13, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, |
|
|
|
|
0x63, 0x61, 0x74, 0x65, 0x12, 0x32, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, |
|
|
|
|
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, |
|
|
|
|
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, |
|
|
|
|
0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x32, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x70, |
|
|
|
|
0x61, 0x72, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, |
|
|
|
|
0x0b, 0x32, 0x08, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x70, 0x72, 0x65, |
|
|
|
|
0x70, 0x61, 0x72, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0x54, 0x0a, 0x16, |
|
|
|
|
0x52, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, |
|
|
|
|
0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x3a, 0x0a, 0x13, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x43, |
|
|
|
|
0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, |
|
|
|
|
0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x13, 0x72, |
|
|
|
|
0x6f, 0x75, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, |
|
|
|
|
0x65, 0x73, 0x2a, 0x48, 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, |
|
|
|
|
0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x52, 0x45, 0x50, 0x52, 0x45, 0x50, 0x41, 0x52, 0x45, 0x10, |
|
|
|
|
0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x45, 0x50, 0x41, 0x52, 0x45, 0x10, 0x01, 0x12, 0x0a, |
|
|
|
|
0x0a, 0x06, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x4f, |
|
|
|
|
0x55, 0x4e, 0x44, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x03, 0x42, 0x11, 0x5a, 0x0f, |
|
|
|
|
0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, |
|
|
|
|
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
|
|
|
|
0x6f, 0x73, 0x61, 0x6c, 0x12, 0x52, 0x0a, 0x19, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x72, |
|
|
|
|
0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, |
|
|
|
|
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, |
|
|
|
|
0x65, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x19, 0x6c, |
|
|
|
|
0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x43, 0x65, 0x72, |
|
|
|
|
0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x22, 0x7d, 0x0a, 0x13, 0x50, 0x72, 0x65, 0x70, |
|
|
|
|
0x61, 0x72, 0x65, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, |
|
|
|
|
0x32, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, |
|
|
|
|
0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, |
|
|
|
|
0x67, 0x65, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, |
|
|
|
|
0x61, 0x67, 0x65, 0x12, 0x32, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x4d, 0x65, |
|
|
|
|
0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x4d, |
|
|
|
|
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x4d, |
|
|
|
|
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0x54, 0x0a, 0x16, 0x52, 0x6f, 0x75, 0x6e, 0x64, |
|
|
|
|
0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, |
|
|
|
|
0x65, 0x12, 0x3a, 0x0a, 0x13, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, |
|
|
|
|
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, |
|
|
|
|
0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x13, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x43, |
|
|
|
|
0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0x42, 0x0a, |
|
|
|
|
0x08, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x61, 0x77, |
|
|
|
|
0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, |
|
|
|
|
0x72, 0x61, 0x77, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x72, |
|
|
|
|
0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, |
|
|
|
|
0x64, 0x2a, 0x48, 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, |
|
|
|
|
0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x52, 0x45, 0x50, 0x52, 0x45, 0x50, 0x41, 0x52, 0x45, 0x10, 0x00, |
|
|
|
|
0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x45, 0x50, 0x41, 0x52, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, |
|
|
|
|
0x06, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x4f, 0x55, |
|
|
|
|
0x4e, 0x44, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x03, 0x42, 0x11, 0x5a, 0x0f, 0x2f, |
|
|
|
|
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, |
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var ( |
|
|
|
|
file_messages_proto_rawDescOnce sync.Once |
|
|
|
|
file_messages_proto_rawDescData = file_messages_proto_rawDesc |
|
|
|
|
file_messages_proto_messages_proto_rawDescOnce sync.Once |
|
|
|
|
file_messages_proto_messages_proto_rawDescData = file_messages_proto_messages_proto_rawDesc |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
func file_messages_proto_rawDescGZIP() []byte { |
|
|
|
|
file_messages_proto_rawDescOnce.Do(func() { |
|
|
|
|
file_messages_proto_rawDescData = protoimpl.X.CompressGZIP(file_messages_proto_rawDescData) |
|
|
|
|
func file_messages_proto_messages_proto_rawDescGZIP() []byte { |
|
|
|
|
file_messages_proto_messages_proto_rawDescOnce.Do(func() { |
|
|
|
|
file_messages_proto_messages_proto_rawDescData = protoimpl.X.CompressGZIP(file_messages_proto_messages_proto_rawDescData) |
|
|
|
|
}) |
|
|
|
|
return file_messages_proto_rawDescData |
|
|
|
|
return file_messages_proto_messages_proto_rawDescData |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var file_messages_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
|
|
|
|
var file_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 8) |
|
|
|
|
var file_messages_proto_goTypes = []interface{}{ |
|
|
|
|
var file_messages_proto_messages_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
|
|
|
|
var file_messages_proto_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 9) |
|
|
|
|
var file_messages_proto_messages_proto_goTypes = []interface{}{ |
|
|
|
|
(MessageType)(0), // 0: MessageType
|
|
|
|
|
(*View)(nil), // 1: View
|
|
|
|
|
(*Message)(nil), // 2: Message
|
|
|
|
@ -729,33 +798,36 @@ var file_messages_proto_goTypes = []interface{}{ |
|
|
|
|
(*RoundChangeMessage)(nil), // 6: RoundChangeMessage
|
|
|
|
|
(*PreparedCertificate)(nil), // 7: PreparedCertificate
|
|
|
|
|
(*RoundChangeCertificate)(nil), // 8: RoundChangeCertificate
|
|
|
|
|
(*Proposal)(nil), // 9: Proposal
|
|
|
|
|
} |
|
|
|
|
var file_messages_proto_depIdxs = []int32{ |
|
|
|
|
var file_messages_proto_messages_proto_depIdxs = []int32{ |
|
|
|
|
1, // 0: Message.view:type_name -> View
|
|
|
|
|
0, // 1: Message.type:type_name -> MessageType
|
|
|
|
|
3, // 2: Message.preprepareData:type_name -> PrePrepareMessage
|
|
|
|
|
4, // 3: Message.prepareData:type_name -> PrepareMessage
|
|
|
|
|
5, // 4: Message.commitData:type_name -> CommitMessage
|
|
|
|
|
6, // 5: Message.roundChangeData:type_name -> RoundChangeMessage
|
|
|
|
|
8, // 6: PrePrepareMessage.certificate:type_name -> RoundChangeCertificate
|
|
|
|
|
7, // 7: RoundChangeMessage.latestPreparedCertificate:type_name -> PreparedCertificate
|
|
|
|
|
2, // 8: PreparedCertificate.proposalMessage:type_name -> Message
|
|
|
|
|
2, // 9: PreparedCertificate.prepareMessages:type_name -> Message
|
|
|
|
|
2, // 10: RoundChangeCertificate.roundChangeMessages:type_name -> Message
|
|
|
|
|
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_messages_proto_init() } |
|
|
|
|
func file_messages_proto_init() { |
|
|
|
|
if File_messages_proto != nil { |
|
|
|
|
9, // 6: PrePrepareMessage.proposal:type_name -> Proposal
|
|
|
|
|
8, // 7: PrePrepareMessage.certificate:type_name -> RoundChangeCertificate
|
|
|
|
|
9, // 8: RoundChangeMessage.lastPreparedProposal:type_name -> Proposal
|
|
|
|
|
7, // 9: RoundChangeMessage.latestPreparedCertificate:type_name -> PreparedCertificate
|
|
|
|
|
2, // 10: PreparedCertificate.proposalMessage:type_name -> Message
|
|
|
|
|
2, // 11: PreparedCertificate.prepareMessages:type_name -> Message
|
|
|
|
|
2, // 12: RoundChangeCertificate.roundChangeMessages:type_name -> Message
|
|
|
|
|
13, // [13:13] is the sub-list for method output_type
|
|
|
|
|
13, // [13:13] is the sub-list for method input_type
|
|
|
|
|
13, // [13:13] is the sub-list for extension type_name
|
|
|
|
|
13, // [13:13] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:13] is the sub-list for field type_name
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func init() { file_messages_proto_messages_proto_init() } |
|
|
|
|
func file_messages_proto_messages_proto_init() { |
|
|
|
|
if File_messages_proto_messages_proto != nil { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if !protoimpl.UnsafeEnabled { |
|
|
|
|
file_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
file_messages_proto_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*View); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
@ -767,7 +839,7 @@ func file_messages_proto_init() { |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_messages_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
file_messages_proto_messages_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*Message); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
@ -779,7 +851,7 @@ func file_messages_proto_init() { |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_messages_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
file_messages_proto_messages_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*PrePrepareMessage); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
@ -791,7 +863,7 @@ func file_messages_proto_init() { |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_messages_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
file_messages_proto_messages_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*PrepareMessage); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
@ -803,7 +875,7 @@ func file_messages_proto_init() { |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_messages_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
file_messages_proto_messages_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*CommitMessage); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
@ -815,7 +887,7 @@ func file_messages_proto_init() { |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_messages_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
file_messages_proto_messages_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*RoundChangeMessage); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
@ -827,7 +899,7 @@ func file_messages_proto_init() { |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_messages_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
file_messages_proto_messages_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*PreparedCertificate); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
@ -839,7 +911,7 @@ func file_messages_proto_init() { |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_messages_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
file_messages_proto_messages_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*RoundChangeCertificate); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
@ -851,8 +923,20 @@ func file_messages_proto_init() { |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_messages_proto_messages_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { |
|
|
|
|
switch v := v.(*Proposal); i { |
|
|
|
|
case 0: |
|
|
|
|
return &v.state |
|
|
|
|
case 1: |
|
|
|
|
return &v.sizeCache |
|
|
|
|
case 2: |
|
|
|
|
return &v.unknownFields |
|
|
|
|
default: |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
file_messages_proto_msgTypes[1].OneofWrappers = []interface{}{ |
|
|
|
|
file_messages_proto_messages_proto_msgTypes[1].OneofWrappers = []interface{}{ |
|
|
|
|
(*Message_PreprepareData)(nil), |
|
|
|
|
(*Message_PrepareData)(nil), |
|
|
|
|
(*Message_CommitData)(nil), |
|
|
|
@ -862,19 +946,19 @@ func file_messages_proto_init() { |
|
|
|
|
out := protoimpl.TypeBuilder{ |
|
|
|
|
File: protoimpl.DescBuilder{ |
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
|
|
|
|
RawDescriptor: file_messages_proto_rawDesc, |
|
|
|
|
RawDescriptor: file_messages_proto_messages_proto_rawDesc, |
|
|
|
|
NumEnums: 1, |
|
|
|
|
NumMessages: 8, |
|
|
|
|
NumMessages: 9, |
|
|
|
|
NumExtensions: 0, |
|
|
|
|
NumServices: 0, |
|
|
|
|
}, |
|
|
|
|
GoTypes: file_messages_proto_goTypes, |
|
|
|
|
DependencyIndexes: file_messages_proto_depIdxs, |
|
|
|
|
EnumInfos: file_messages_proto_enumTypes, |
|
|
|
|
MessageInfos: file_messages_proto_msgTypes, |
|
|
|
|
GoTypes: file_messages_proto_messages_proto_goTypes, |
|
|
|
|
DependencyIndexes: file_messages_proto_messages_proto_depIdxs, |
|
|
|
|
EnumInfos: file_messages_proto_messages_proto_enumTypes, |
|
|
|
|
MessageInfos: file_messages_proto_messages_proto_msgTypes, |
|
|
|
|
}.Build() |
|
|
|
|
File_messages_proto = out.File |
|
|
|
|
file_messages_proto_rawDesc = nil |
|
|
|
|
file_messages_proto_goTypes = nil |
|
|
|
|
file_messages_proto_depIdxs = nil |
|
|
|
|
File_messages_proto_messages_proto = out.File |
|
|
|
|
file_messages_proto_messages_proto_rawDesc = nil |
|
|
|
|
file_messages_proto_messages_proto_goTypes = nil |
|
|
|
|
file_messages_proto_messages_proto_depIdxs = nil |
|
|
|
|
} |
|
|
|
|