github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/proto/tendermint/consensus/types.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: tendermint/consensus/types.proto
     3  
     4  package consensus
     5  
     6  import (
     7  	fmt "fmt"
     8  	bits "github.com/ari-anchor/sei-tendermint/proto/tendermint/libs/bits"
     9  	types "github.com/ari-anchor/sei-tendermint/proto/tendermint/types"
    10  	_ "github.com/gogo/protobuf/gogoproto"
    11  	proto "github.com/gogo/protobuf/proto"
    12  	io "io"
    13  	math "math"
    14  	math_bits "math/bits"
    15  )
    16  
    17  // Reference imports to suppress errors if they are not otherwise used.
    18  var _ = proto.Marshal
    19  var _ = fmt.Errorf
    20  var _ = math.Inf
    21  
    22  // This is a compile-time assertion to ensure that this generated file
    23  // is compatible with the proto package it is being compiled against.
    24  // A compilation error at this line likely means your copy of the
    25  // proto package needs to be updated.
    26  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    27  
    28  // NewRoundStep is sent for every step taken in the ConsensusState.
    29  // For every height/round/step transition
    30  type NewRoundStep struct {
    31  	Height                int64  `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
    32  	Round                 int32  `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
    33  	Step                  uint32 `protobuf:"varint,3,opt,name=step,proto3" json:"step,omitempty"`
    34  	SecondsSinceStartTime int64  `protobuf:"varint,4,opt,name=seconds_since_start_time,json=secondsSinceStartTime,proto3" json:"seconds_since_start_time,omitempty"`
    35  	LastCommitRound       int32  `protobuf:"varint,5,opt,name=last_commit_round,json=lastCommitRound,proto3" json:"last_commit_round,omitempty"`
    36  }
    37  
    38  func (m *NewRoundStep) Reset()         { *m = NewRoundStep{} }
    39  func (m *NewRoundStep) String() string { return proto.CompactTextString(m) }
    40  func (*NewRoundStep) ProtoMessage()    {}
    41  func (*NewRoundStep) Descriptor() ([]byte, []int) {
    42  	return fileDescriptor_81a22d2efc008981, []int{0}
    43  }
    44  func (m *NewRoundStep) XXX_Unmarshal(b []byte) error {
    45  	return m.Unmarshal(b)
    46  }
    47  func (m *NewRoundStep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	if deterministic {
    49  		return xxx_messageInfo_NewRoundStep.Marshal(b, m, deterministic)
    50  	} else {
    51  		b = b[:cap(b)]
    52  		n, err := m.MarshalToSizedBuffer(b)
    53  		if err != nil {
    54  			return nil, err
    55  		}
    56  		return b[:n], nil
    57  	}
    58  }
    59  func (m *NewRoundStep) XXX_Merge(src proto.Message) {
    60  	xxx_messageInfo_NewRoundStep.Merge(m, src)
    61  }
    62  func (m *NewRoundStep) XXX_Size() int {
    63  	return m.Size()
    64  }
    65  func (m *NewRoundStep) XXX_DiscardUnknown() {
    66  	xxx_messageInfo_NewRoundStep.DiscardUnknown(m)
    67  }
    68  
    69  var xxx_messageInfo_NewRoundStep proto.InternalMessageInfo
    70  
    71  func (m *NewRoundStep) GetHeight() int64 {
    72  	if m != nil {
    73  		return m.Height
    74  	}
    75  	return 0
    76  }
    77  
    78  func (m *NewRoundStep) GetRound() int32 {
    79  	if m != nil {
    80  		return m.Round
    81  	}
    82  	return 0
    83  }
    84  
    85  func (m *NewRoundStep) GetStep() uint32 {
    86  	if m != nil {
    87  		return m.Step
    88  	}
    89  	return 0
    90  }
    91  
    92  func (m *NewRoundStep) GetSecondsSinceStartTime() int64 {
    93  	if m != nil {
    94  		return m.SecondsSinceStartTime
    95  	}
    96  	return 0
    97  }
    98  
    99  func (m *NewRoundStep) GetLastCommitRound() int32 {
   100  	if m != nil {
   101  		return m.LastCommitRound
   102  	}
   103  	return 0
   104  }
   105  
   106  // NewValidBlock is sent when a validator observes a valid block B in some round
   107  // r,
   108  // i.e., there is a Proposal for block B and 2/3+ prevotes for the block B in
   109  // the round r.
   110  // In case the block is also committed, then IsCommit flag is set to true.
   111  type NewValidBlock struct {
   112  	Height             int64               `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   113  	Round              int32               `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
   114  	BlockPartSetHeader types.PartSetHeader `protobuf:"bytes,3,opt,name=block_part_set_header,json=blockPartSetHeader,proto3" json:"block_part_set_header"`
   115  	BlockParts         *bits.BitArray      `protobuf:"bytes,4,opt,name=block_parts,json=blockParts,proto3" json:"block_parts,omitempty"`
   116  	IsCommit           bool                `protobuf:"varint,5,opt,name=is_commit,json=isCommit,proto3" json:"is_commit,omitempty"`
   117  }
   118  
   119  func (m *NewValidBlock) Reset()         { *m = NewValidBlock{} }
   120  func (m *NewValidBlock) String() string { return proto.CompactTextString(m) }
   121  func (*NewValidBlock) ProtoMessage()    {}
   122  func (*NewValidBlock) Descriptor() ([]byte, []int) {
   123  	return fileDescriptor_81a22d2efc008981, []int{1}
   124  }
   125  func (m *NewValidBlock) XXX_Unmarshal(b []byte) error {
   126  	return m.Unmarshal(b)
   127  }
   128  func (m *NewValidBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   129  	if deterministic {
   130  		return xxx_messageInfo_NewValidBlock.Marshal(b, m, deterministic)
   131  	} else {
   132  		b = b[:cap(b)]
   133  		n, err := m.MarshalToSizedBuffer(b)
   134  		if err != nil {
   135  			return nil, err
   136  		}
   137  		return b[:n], nil
   138  	}
   139  }
   140  func (m *NewValidBlock) XXX_Merge(src proto.Message) {
   141  	xxx_messageInfo_NewValidBlock.Merge(m, src)
   142  }
   143  func (m *NewValidBlock) XXX_Size() int {
   144  	return m.Size()
   145  }
   146  func (m *NewValidBlock) XXX_DiscardUnknown() {
   147  	xxx_messageInfo_NewValidBlock.DiscardUnknown(m)
   148  }
   149  
   150  var xxx_messageInfo_NewValidBlock proto.InternalMessageInfo
   151  
   152  func (m *NewValidBlock) GetHeight() int64 {
   153  	if m != nil {
   154  		return m.Height
   155  	}
   156  	return 0
   157  }
   158  
   159  func (m *NewValidBlock) GetRound() int32 {
   160  	if m != nil {
   161  		return m.Round
   162  	}
   163  	return 0
   164  }
   165  
   166  func (m *NewValidBlock) GetBlockPartSetHeader() types.PartSetHeader {
   167  	if m != nil {
   168  		return m.BlockPartSetHeader
   169  	}
   170  	return types.PartSetHeader{}
   171  }
   172  
   173  func (m *NewValidBlock) GetBlockParts() *bits.BitArray {
   174  	if m != nil {
   175  		return m.BlockParts
   176  	}
   177  	return nil
   178  }
   179  
   180  func (m *NewValidBlock) GetIsCommit() bool {
   181  	if m != nil {
   182  		return m.IsCommit
   183  	}
   184  	return false
   185  }
   186  
   187  // Proposal is sent when a new block is proposed.
   188  type Proposal struct {
   189  	Proposal types.Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal"`
   190  }
   191  
   192  func (m *Proposal) Reset()         { *m = Proposal{} }
   193  func (m *Proposal) String() string { return proto.CompactTextString(m) }
   194  func (*Proposal) ProtoMessage()    {}
   195  func (*Proposal) Descriptor() ([]byte, []int) {
   196  	return fileDescriptor_81a22d2efc008981, []int{2}
   197  }
   198  func (m *Proposal) XXX_Unmarshal(b []byte) error {
   199  	return m.Unmarshal(b)
   200  }
   201  func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   202  	if deterministic {
   203  		return xxx_messageInfo_Proposal.Marshal(b, m, deterministic)
   204  	} else {
   205  		b = b[:cap(b)]
   206  		n, err := m.MarshalToSizedBuffer(b)
   207  		if err != nil {
   208  			return nil, err
   209  		}
   210  		return b[:n], nil
   211  	}
   212  }
   213  func (m *Proposal) XXX_Merge(src proto.Message) {
   214  	xxx_messageInfo_Proposal.Merge(m, src)
   215  }
   216  func (m *Proposal) XXX_Size() int {
   217  	return m.Size()
   218  }
   219  func (m *Proposal) XXX_DiscardUnknown() {
   220  	xxx_messageInfo_Proposal.DiscardUnknown(m)
   221  }
   222  
   223  var xxx_messageInfo_Proposal proto.InternalMessageInfo
   224  
   225  func (m *Proposal) GetProposal() types.Proposal {
   226  	if m != nil {
   227  		return m.Proposal
   228  	}
   229  	return types.Proposal{}
   230  }
   231  
   232  // ProposalPOL is sent when a previous proposal is re-proposed.
   233  type ProposalPOL struct {
   234  	Height           int64         `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   235  	ProposalPolRound int32         `protobuf:"varint,2,opt,name=proposal_pol_round,json=proposalPolRound,proto3" json:"proposal_pol_round,omitempty"`
   236  	ProposalPol      bits.BitArray `protobuf:"bytes,3,opt,name=proposal_pol,json=proposalPol,proto3" json:"proposal_pol"`
   237  }
   238  
   239  func (m *ProposalPOL) Reset()         { *m = ProposalPOL{} }
   240  func (m *ProposalPOL) String() string { return proto.CompactTextString(m) }
   241  func (*ProposalPOL) ProtoMessage()    {}
   242  func (*ProposalPOL) Descriptor() ([]byte, []int) {
   243  	return fileDescriptor_81a22d2efc008981, []int{3}
   244  }
   245  func (m *ProposalPOL) XXX_Unmarshal(b []byte) error {
   246  	return m.Unmarshal(b)
   247  }
   248  func (m *ProposalPOL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   249  	if deterministic {
   250  		return xxx_messageInfo_ProposalPOL.Marshal(b, m, deterministic)
   251  	} else {
   252  		b = b[:cap(b)]
   253  		n, err := m.MarshalToSizedBuffer(b)
   254  		if err != nil {
   255  			return nil, err
   256  		}
   257  		return b[:n], nil
   258  	}
   259  }
   260  func (m *ProposalPOL) XXX_Merge(src proto.Message) {
   261  	xxx_messageInfo_ProposalPOL.Merge(m, src)
   262  }
   263  func (m *ProposalPOL) XXX_Size() int {
   264  	return m.Size()
   265  }
   266  func (m *ProposalPOL) XXX_DiscardUnknown() {
   267  	xxx_messageInfo_ProposalPOL.DiscardUnknown(m)
   268  }
   269  
   270  var xxx_messageInfo_ProposalPOL proto.InternalMessageInfo
   271  
   272  func (m *ProposalPOL) GetHeight() int64 {
   273  	if m != nil {
   274  		return m.Height
   275  	}
   276  	return 0
   277  }
   278  
   279  func (m *ProposalPOL) GetProposalPolRound() int32 {
   280  	if m != nil {
   281  		return m.ProposalPolRound
   282  	}
   283  	return 0
   284  }
   285  
   286  func (m *ProposalPOL) GetProposalPol() bits.BitArray {
   287  	if m != nil {
   288  		return m.ProposalPol
   289  	}
   290  	return bits.BitArray{}
   291  }
   292  
   293  // BlockPart is sent when gossipping a piece of the proposed block.
   294  type BlockPart struct {
   295  	Height int64      `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   296  	Round  int32      `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
   297  	Part   types.Part `protobuf:"bytes,3,opt,name=part,proto3" json:"part"`
   298  }
   299  
   300  func (m *BlockPart) Reset()         { *m = BlockPart{} }
   301  func (m *BlockPart) String() string { return proto.CompactTextString(m) }
   302  func (*BlockPart) ProtoMessage()    {}
   303  func (*BlockPart) Descriptor() ([]byte, []int) {
   304  	return fileDescriptor_81a22d2efc008981, []int{4}
   305  }
   306  func (m *BlockPart) XXX_Unmarshal(b []byte) error {
   307  	return m.Unmarshal(b)
   308  }
   309  func (m *BlockPart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   310  	if deterministic {
   311  		return xxx_messageInfo_BlockPart.Marshal(b, m, deterministic)
   312  	} else {
   313  		b = b[:cap(b)]
   314  		n, err := m.MarshalToSizedBuffer(b)
   315  		if err != nil {
   316  			return nil, err
   317  		}
   318  		return b[:n], nil
   319  	}
   320  }
   321  func (m *BlockPart) XXX_Merge(src proto.Message) {
   322  	xxx_messageInfo_BlockPart.Merge(m, src)
   323  }
   324  func (m *BlockPart) XXX_Size() int {
   325  	return m.Size()
   326  }
   327  func (m *BlockPart) XXX_DiscardUnknown() {
   328  	xxx_messageInfo_BlockPart.DiscardUnknown(m)
   329  }
   330  
   331  var xxx_messageInfo_BlockPart proto.InternalMessageInfo
   332  
   333  func (m *BlockPart) GetHeight() int64 {
   334  	if m != nil {
   335  		return m.Height
   336  	}
   337  	return 0
   338  }
   339  
   340  func (m *BlockPart) GetRound() int32 {
   341  	if m != nil {
   342  		return m.Round
   343  	}
   344  	return 0
   345  }
   346  
   347  func (m *BlockPart) GetPart() types.Part {
   348  	if m != nil {
   349  		return m.Part
   350  	}
   351  	return types.Part{}
   352  }
   353  
   354  // Vote is sent when voting for a proposal (or lack thereof).
   355  type Vote struct {
   356  	Vote *types.Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"`
   357  }
   358  
   359  func (m *Vote) Reset()         { *m = Vote{} }
   360  func (m *Vote) String() string { return proto.CompactTextString(m) }
   361  func (*Vote) ProtoMessage()    {}
   362  func (*Vote) Descriptor() ([]byte, []int) {
   363  	return fileDescriptor_81a22d2efc008981, []int{5}
   364  }
   365  func (m *Vote) XXX_Unmarshal(b []byte) error {
   366  	return m.Unmarshal(b)
   367  }
   368  func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   369  	if deterministic {
   370  		return xxx_messageInfo_Vote.Marshal(b, m, deterministic)
   371  	} else {
   372  		b = b[:cap(b)]
   373  		n, err := m.MarshalToSizedBuffer(b)
   374  		if err != nil {
   375  			return nil, err
   376  		}
   377  		return b[:n], nil
   378  	}
   379  }
   380  func (m *Vote) XXX_Merge(src proto.Message) {
   381  	xxx_messageInfo_Vote.Merge(m, src)
   382  }
   383  func (m *Vote) XXX_Size() int {
   384  	return m.Size()
   385  }
   386  func (m *Vote) XXX_DiscardUnknown() {
   387  	xxx_messageInfo_Vote.DiscardUnknown(m)
   388  }
   389  
   390  var xxx_messageInfo_Vote proto.InternalMessageInfo
   391  
   392  func (m *Vote) GetVote() *types.Vote {
   393  	if m != nil {
   394  		return m.Vote
   395  	}
   396  	return nil
   397  }
   398  
   399  // HasVote is sent to indicate that a particular vote has been received.
   400  type HasVote struct {
   401  	Height int64               `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   402  	Round  int32               `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
   403  	Type   types.SignedMsgType `protobuf:"varint,3,opt,name=type,proto3,enum=seitendermint.types.SignedMsgType" json:"type,omitempty"`
   404  	Index  int32               `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
   405  }
   406  
   407  func (m *HasVote) Reset()         { *m = HasVote{} }
   408  func (m *HasVote) String() string { return proto.CompactTextString(m) }
   409  func (*HasVote) ProtoMessage()    {}
   410  func (*HasVote) Descriptor() ([]byte, []int) {
   411  	return fileDescriptor_81a22d2efc008981, []int{6}
   412  }
   413  func (m *HasVote) XXX_Unmarshal(b []byte) error {
   414  	return m.Unmarshal(b)
   415  }
   416  func (m *HasVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   417  	if deterministic {
   418  		return xxx_messageInfo_HasVote.Marshal(b, m, deterministic)
   419  	} else {
   420  		b = b[:cap(b)]
   421  		n, err := m.MarshalToSizedBuffer(b)
   422  		if err != nil {
   423  			return nil, err
   424  		}
   425  		return b[:n], nil
   426  	}
   427  }
   428  func (m *HasVote) XXX_Merge(src proto.Message) {
   429  	xxx_messageInfo_HasVote.Merge(m, src)
   430  }
   431  func (m *HasVote) XXX_Size() int {
   432  	return m.Size()
   433  }
   434  func (m *HasVote) XXX_DiscardUnknown() {
   435  	xxx_messageInfo_HasVote.DiscardUnknown(m)
   436  }
   437  
   438  var xxx_messageInfo_HasVote proto.InternalMessageInfo
   439  
   440  func (m *HasVote) GetHeight() int64 {
   441  	if m != nil {
   442  		return m.Height
   443  	}
   444  	return 0
   445  }
   446  
   447  func (m *HasVote) GetRound() int32 {
   448  	if m != nil {
   449  		return m.Round
   450  	}
   451  	return 0
   452  }
   453  
   454  func (m *HasVote) GetType() types.SignedMsgType {
   455  	if m != nil {
   456  		return m.Type
   457  	}
   458  	return types.UnknownType
   459  }
   460  
   461  func (m *HasVote) GetIndex() int32 {
   462  	if m != nil {
   463  		return m.Index
   464  	}
   465  	return 0
   466  }
   467  
   468  type VoteSetMaj23 struct {
   469  	// VoteSetMaj23 is sent to indicate that a given BlockID has seen +2/3 votes.
   470  	Height  int64               `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   471  	Round   int32               `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
   472  	Type    types.SignedMsgType `protobuf:"varint,3,opt,name=type,proto3,enum=seitendermint.types.SignedMsgType" json:"type,omitempty"`
   473  	BlockID types.BlockID       `protobuf:"bytes,4,opt,name=block_id,json=blockId,proto3" json:"block_id"`
   474  }
   475  
   476  func (m *VoteSetMaj23) Reset()         { *m = VoteSetMaj23{} }
   477  func (m *VoteSetMaj23) String() string { return proto.CompactTextString(m) }
   478  func (*VoteSetMaj23) ProtoMessage()    {}
   479  func (*VoteSetMaj23) Descriptor() ([]byte, []int) {
   480  	return fileDescriptor_81a22d2efc008981, []int{7}
   481  }
   482  func (m *VoteSetMaj23) XXX_Unmarshal(b []byte) error {
   483  	return m.Unmarshal(b)
   484  }
   485  func (m *VoteSetMaj23) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   486  	if deterministic {
   487  		return xxx_messageInfo_VoteSetMaj23.Marshal(b, m, deterministic)
   488  	} else {
   489  		b = b[:cap(b)]
   490  		n, err := m.MarshalToSizedBuffer(b)
   491  		if err != nil {
   492  			return nil, err
   493  		}
   494  		return b[:n], nil
   495  	}
   496  }
   497  func (m *VoteSetMaj23) XXX_Merge(src proto.Message) {
   498  	xxx_messageInfo_VoteSetMaj23.Merge(m, src)
   499  }
   500  func (m *VoteSetMaj23) XXX_Size() int {
   501  	return m.Size()
   502  }
   503  func (m *VoteSetMaj23) XXX_DiscardUnknown() {
   504  	xxx_messageInfo_VoteSetMaj23.DiscardUnknown(m)
   505  }
   506  
   507  var xxx_messageInfo_VoteSetMaj23 proto.InternalMessageInfo
   508  
   509  func (m *VoteSetMaj23) GetHeight() int64 {
   510  	if m != nil {
   511  		return m.Height
   512  	}
   513  	return 0
   514  }
   515  
   516  func (m *VoteSetMaj23) GetRound() int32 {
   517  	if m != nil {
   518  		return m.Round
   519  	}
   520  	return 0
   521  }
   522  
   523  func (m *VoteSetMaj23) GetType() types.SignedMsgType {
   524  	if m != nil {
   525  		return m.Type
   526  	}
   527  	return types.UnknownType
   528  }
   529  
   530  func (m *VoteSetMaj23) GetBlockID() types.BlockID {
   531  	if m != nil {
   532  		return m.BlockID
   533  	}
   534  	return types.BlockID{}
   535  }
   536  
   537  // VoteSetBits is sent to communicate the bit-array of votes seen for the
   538  // BlockID.
   539  type VoteSetBits struct {
   540  	Height  int64               `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   541  	Round   int32               `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
   542  	Type    types.SignedMsgType `protobuf:"varint,3,opt,name=type,proto3,enum=seitendermint.types.SignedMsgType" json:"type,omitempty"`
   543  	BlockID types.BlockID       `protobuf:"bytes,4,opt,name=block_id,json=blockId,proto3" json:"block_id"`
   544  	Votes   bits.BitArray       `protobuf:"bytes,5,opt,name=votes,proto3" json:"votes"`
   545  }
   546  
   547  func (m *VoteSetBits) Reset()         { *m = VoteSetBits{} }
   548  func (m *VoteSetBits) String() string { return proto.CompactTextString(m) }
   549  func (*VoteSetBits) ProtoMessage()    {}
   550  func (*VoteSetBits) Descriptor() ([]byte, []int) {
   551  	return fileDescriptor_81a22d2efc008981, []int{8}
   552  }
   553  func (m *VoteSetBits) XXX_Unmarshal(b []byte) error {
   554  	return m.Unmarshal(b)
   555  }
   556  func (m *VoteSetBits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   557  	if deterministic {
   558  		return xxx_messageInfo_VoteSetBits.Marshal(b, m, deterministic)
   559  	} else {
   560  		b = b[:cap(b)]
   561  		n, err := m.MarshalToSizedBuffer(b)
   562  		if err != nil {
   563  			return nil, err
   564  		}
   565  		return b[:n], nil
   566  	}
   567  }
   568  func (m *VoteSetBits) XXX_Merge(src proto.Message) {
   569  	xxx_messageInfo_VoteSetBits.Merge(m, src)
   570  }
   571  func (m *VoteSetBits) XXX_Size() int {
   572  	return m.Size()
   573  }
   574  func (m *VoteSetBits) XXX_DiscardUnknown() {
   575  	xxx_messageInfo_VoteSetBits.DiscardUnknown(m)
   576  }
   577  
   578  var xxx_messageInfo_VoteSetBits proto.InternalMessageInfo
   579  
   580  func (m *VoteSetBits) GetHeight() int64 {
   581  	if m != nil {
   582  		return m.Height
   583  	}
   584  	return 0
   585  }
   586  
   587  func (m *VoteSetBits) GetRound() int32 {
   588  	if m != nil {
   589  		return m.Round
   590  	}
   591  	return 0
   592  }
   593  
   594  func (m *VoteSetBits) GetType() types.SignedMsgType {
   595  	if m != nil {
   596  		return m.Type
   597  	}
   598  	return types.UnknownType
   599  }
   600  
   601  func (m *VoteSetBits) GetBlockID() types.BlockID {
   602  	if m != nil {
   603  		return m.BlockID
   604  	}
   605  	return types.BlockID{}
   606  }
   607  
   608  func (m *VoteSetBits) GetVotes() bits.BitArray {
   609  	if m != nil {
   610  		return m.Votes
   611  	}
   612  	return bits.BitArray{}
   613  }
   614  
   615  type Message struct {
   616  	// Types that are valid to be assigned to Sum:
   617  	//	*Message_NewRoundStep
   618  	//	*Message_NewValidBlock
   619  	//	*Message_Proposal
   620  	//	*Message_ProposalPol
   621  	//	*Message_BlockPart
   622  	//	*Message_Vote
   623  	//	*Message_HasVote
   624  	//	*Message_VoteSetMaj23
   625  	//	*Message_VoteSetBits
   626  	Sum isMessage_Sum `protobuf_oneof:"sum"`
   627  }
   628  
   629  func (m *Message) Reset()         { *m = Message{} }
   630  func (m *Message) String() string { return proto.CompactTextString(m) }
   631  func (*Message) ProtoMessage()    {}
   632  func (*Message) Descriptor() ([]byte, []int) {
   633  	return fileDescriptor_81a22d2efc008981, []int{9}
   634  }
   635  func (m *Message) XXX_Unmarshal(b []byte) error {
   636  	return m.Unmarshal(b)
   637  }
   638  func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   639  	if deterministic {
   640  		return xxx_messageInfo_Message.Marshal(b, m, deterministic)
   641  	} else {
   642  		b = b[:cap(b)]
   643  		n, err := m.MarshalToSizedBuffer(b)
   644  		if err != nil {
   645  			return nil, err
   646  		}
   647  		return b[:n], nil
   648  	}
   649  }
   650  func (m *Message) XXX_Merge(src proto.Message) {
   651  	xxx_messageInfo_Message.Merge(m, src)
   652  }
   653  func (m *Message) XXX_Size() int {
   654  	return m.Size()
   655  }
   656  func (m *Message) XXX_DiscardUnknown() {
   657  	xxx_messageInfo_Message.DiscardUnknown(m)
   658  }
   659  
   660  var xxx_messageInfo_Message proto.InternalMessageInfo
   661  
   662  type isMessage_Sum interface {
   663  	isMessage_Sum()
   664  	MarshalTo([]byte) (int, error)
   665  	Size() int
   666  }
   667  
   668  type Message_NewRoundStep struct {
   669  	NewRoundStep *NewRoundStep `protobuf:"bytes,1,opt,name=new_round_step,json=newRoundStep,proto3,oneof" json:"new_round_step,omitempty"`
   670  }
   671  type Message_NewValidBlock struct {
   672  	NewValidBlock *NewValidBlock `protobuf:"bytes,2,opt,name=new_valid_block,json=newValidBlock,proto3,oneof" json:"new_valid_block,omitempty"`
   673  }
   674  type Message_Proposal struct {
   675  	Proposal *Proposal `protobuf:"bytes,3,opt,name=proposal,proto3,oneof" json:"proposal,omitempty"`
   676  }
   677  type Message_ProposalPol struct {
   678  	ProposalPol *ProposalPOL `protobuf:"bytes,4,opt,name=proposal_pol,json=proposalPol,proto3,oneof" json:"proposal_pol,omitempty"`
   679  }
   680  type Message_BlockPart struct {
   681  	BlockPart *BlockPart `protobuf:"bytes,5,opt,name=block_part,json=blockPart,proto3,oneof" json:"block_part,omitempty"`
   682  }
   683  type Message_Vote struct {
   684  	Vote *Vote `protobuf:"bytes,6,opt,name=vote,proto3,oneof" json:"vote,omitempty"`
   685  }
   686  type Message_HasVote struct {
   687  	HasVote *HasVote `protobuf:"bytes,7,opt,name=has_vote,json=hasVote,proto3,oneof" json:"has_vote,omitempty"`
   688  }
   689  type Message_VoteSetMaj23 struct {
   690  	VoteSetMaj23 *VoteSetMaj23 `protobuf:"bytes,8,opt,name=vote_set_maj23,json=voteSetMaj23,proto3,oneof" json:"vote_set_maj23,omitempty"`
   691  }
   692  type Message_VoteSetBits struct {
   693  	VoteSetBits *VoteSetBits `protobuf:"bytes,9,opt,name=vote_set_bits,json=voteSetBits,proto3,oneof" json:"vote_set_bits,omitempty"`
   694  }
   695  
   696  func (*Message_NewRoundStep) isMessage_Sum()  {}
   697  func (*Message_NewValidBlock) isMessage_Sum() {}
   698  func (*Message_Proposal) isMessage_Sum()      {}
   699  func (*Message_ProposalPol) isMessage_Sum()   {}
   700  func (*Message_BlockPart) isMessage_Sum()     {}
   701  func (*Message_Vote) isMessage_Sum()          {}
   702  func (*Message_HasVote) isMessage_Sum()       {}
   703  func (*Message_VoteSetMaj23) isMessage_Sum()  {}
   704  func (*Message_VoteSetBits) isMessage_Sum()   {}
   705  
   706  func (m *Message) GetSum() isMessage_Sum {
   707  	if m != nil {
   708  		return m.Sum
   709  	}
   710  	return nil
   711  }
   712  
   713  func (m *Message) GetNewRoundStep() *NewRoundStep {
   714  	if x, ok := m.GetSum().(*Message_NewRoundStep); ok {
   715  		return x.NewRoundStep
   716  	}
   717  	return nil
   718  }
   719  
   720  func (m *Message) GetNewValidBlock() *NewValidBlock {
   721  	if x, ok := m.GetSum().(*Message_NewValidBlock); ok {
   722  		return x.NewValidBlock
   723  	}
   724  	return nil
   725  }
   726  
   727  func (m *Message) GetProposal() *Proposal {
   728  	if x, ok := m.GetSum().(*Message_Proposal); ok {
   729  		return x.Proposal
   730  	}
   731  	return nil
   732  }
   733  
   734  func (m *Message) GetProposalPol() *ProposalPOL {
   735  	if x, ok := m.GetSum().(*Message_ProposalPol); ok {
   736  		return x.ProposalPol
   737  	}
   738  	return nil
   739  }
   740  
   741  func (m *Message) GetBlockPart() *BlockPart {
   742  	if x, ok := m.GetSum().(*Message_BlockPart); ok {
   743  		return x.BlockPart
   744  	}
   745  	return nil
   746  }
   747  
   748  func (m *Message) GetVote() *Vote {
   749  	if x, ok := m.GetSum().(*Message_Vote); ok {
   750  		return x.Vote
   751  	}
   752  	return nil
   753  }
   754  
   755  func (m *Message) GetHasVote() *HasVote {
   756  	if x, ok := m.GetSum().(*Message_HasVote); ok {
   757  		return x.HasVote
   758  	}
   759  	return nil
   760  }
   761  
   762  func (m *Message) GetVoteSetMaj23() *VoteSetMaj23 {
   763  	if x, ok := m.GetSum().(*Message_VoteSetMaj23); ok {
   764  		return x.VoteSetMaj23
   765  	}
   766  	return nil
   767  }
   768  
   769  func (m *Message) GetVoteSetBits() *VoteSetBits {
   770  	if x, ok := m.GetSum().(*Message_VoteSetBits); ok {
   771  		return x.VoteSetBits
   772  	}
   773  	return nil
   774  }
   775  
   776  // XXX_OneofWrappers is for the internal use of the proto package.
   777  func (*Message) XXX_OneofWrappers() []interface{} {
   778  	return []interface{}{
   779  		(*Message_NewRoundStep)(nil),
   780  		(*Message_NewValidBlock)(nil),
   781  		(*Message_Proposal)(nil),
   782  		(*Message_ProposalPol)(nil),
   783  		(*Message_BlockPart)(nil),
   784  		(*Message_Vote)(nil),
   785  		(*Message_HasVote)(nil),
   786  		(*Message_VoteSetMaj23)(nil),
   787  		(*Message_VoteSetBits)(nil),
   788  	}
   789  }
   790  
   791  func init() {
   792  	proto.RegisterType((*NewRoundStep)(nil), "seitendermint.consensus.NewRoundStep")
   793  	proto.RegisterType((*NewValidBlock)(nil), "seitendermint.consensus.NewValidBlock")
   794  	proto.RegisterType((*Proposal)(nil), "seitendermint.consensus.Proposal")
   795  	proto.RegisterType((*ProposalPOL)(nil), "seitendermint.consensus.ProposalPOL")
   796  	proto.RegisterType((*BlockPart)(nil), "seitendermint.consensus.BlockPart")
   797  	proto.RegisterType((*Vote)(nil), "seitendermint.consensus.Vote")
   798  	proto.RegisterType((*HasVote)(nil), "seitendermint.consensus.HasVote")
   799  	proto.RegisterType((*VoteSetMaj23)(nil), "seitendermint.consensus.VoteSetMaj23")
   800  	proto.RegisterType((*VoteSetBits)(nil), "seitendermint.consensus.VoteSetBits")
   801  	proto.RegisterType((*Message)(nil), "seitendermint.consensus.Message")
   802  }
   803  
   804  func init() { proto.RegisterFile("tendermint/consensus/types.proto", fileDescriptor_81a22d2efc008981) }
   805  
   806  var fileDescriptor_81a22d2efc008981 = []byte{
   807  	// 860 bytes of a gzipped FileDescriptorProto
   808  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0xc1, 0x6e, 0xf3, 0x44,
   809  	0x10, 0xb6, 0x69, 0xd2, 0x24, 0xe3, 0xa4, 0x85, 0xd5, 0xff, 0x43, 0x28, 0x25, 0x0d, 0x16, 0xa0,
   810  	0x0a, 0x51, 0x47, 0x4a, 0x05, 0x9c, 0xaa, 0x0a, 0x97, 0x83, 0x5b, 0x9a, 0x36, 0x72, 0xaa, 0x4a,
   811  	0xc0, 0xc1, 0x72, 0xe2, 0x55, 0xb2, 0x10, 0x7b, 0x2d, 0xef, 0x26, 0xa5, 0x0f, 0xc0, 0x1d, 0x9e,
   812  	0x80, 0xa7, 0xe0, 0xca, 0xb9, 0xc7, 0x1e, 0x39, 0x55, 0x28, 0x7d, 0x0c, 0x38, 0xa0, 0x5d, 0x6f,
   813  	0x12, 0xa7, 0x4a, 0x88, 0x72, 0x41, 0xe2, 0xb6, 0xeb, 0x99, 0xf9, 0x76, 0xf6, 0x9b, 0x99, 0xcf,
   814  	0x0b, 0x75, 0x8e, 0xa3, 0x00, 0x27, 0x21, 0x89, 0x78, 0xa3, 0x47, 0x23, 0x86, 0x23, 0x36, 0x62,
   815  	0x0d, 0x7e, 0x1f, 0x63, 0x66, 0xc5, 0x09, 0xe5, 0x14, 0xbd, 0xc3, 0x30, 0x99, 0x3b, 0x59, 0x33,
   816  	0xa7, 0xbd, 0x57, 0x7d, 0xda, 0xa7, 0xd2, 0xa7, 0x21, 0x56, 0xa9, 0xfb, 0xde, 0x7e, 0x06, 0x50,
   817  	0xc2, 0x64, 0xc1, 0xf6, 0xb2, 0xc7, 0x0d, 0x49, 0x97, 0x35, 0xba, 0x84, 0x2f, 0x78, 0x98, 0xbf,
   818  	0xe9, 0x50, 0xbe, 0xc2, 0x77, 0x2e, 0x1d, 0x45, 0x41, 0x87, 0xe3, 0x18, 0xbd, 0x0d, 0xdb, 0x03,
   819  	0x4c, 0xfa, 0x03, 0x5e, 0xd5, 0xeb, 0xfa, 0xe1, 0x96, 0xab, 0x76, 0xe8, 0x15, 0xe4, 0x13, 0xe1,
   820  	0x54, 0x7d, 0xa3, 0xae, 0x1f, 0xe6, 0xdd, 0x74, 0x83, 0x10, 0xe4, 0x18, 0xc7, 0x71, 0x75, 0xab,
   821  	0xae, 0x1f, 0x56, 0x5c, 0xb9, 0x46, 0x5f, 0x40, 0x95, 0xe1, 0x1e, 0x8d, 0x02, 0xe6, 0x31, 0x12,
   822  	0xf5, 0xb0, 0xc7, 0xb8, 0x9f, 0x70, 0x8f, 0x93, 0x10, 0x57, 0x73, 0x12, 0xf3, 0xb5, 0xb2, 0x77,
   823  	0x84, 0xb9, 0x23, 0xac, 0x37, 0x24, 0xc4, 0xe8, 0x13, 0x78, 0x6b, 0xe8, 0x33, 0xee, 0xf5, 0x68,
   824  	0x18, 0x12, 0xee, 0xa5, 0xc7, 0xe5, 0xe5, 0x71, 0xbb, 0xc2, 0x70, 0x26, 0xbf, 0xcb, 0x54, 0xcd,
   825  	0xbf, 0x74, 0xa8, 0x5c, 0xe1, 0xbb, 0x5b, 0x7f, 0x48, 0x02, 0x7b, 0x48, 0x7b, 0x3f, 0x6c, 0x98,
   826  	0xf8, 0x77, 0xf0, 0xba, 0x2b, 0xc2, 0xbc, 0x58, 0xe4, 0xc6, 0x30, 0xf7, 0x06, 0xd8, 0x0f, 0x70,
   827  	0x22, 0x6f, 0x62, 0x34, 0x4d, 0x6b, 0xb1, 0x0c, 0x29, 0x65, 0x6d, 0x3f, 0xe1, 0x1d, 0xcc, 0x1d,
   828  	0xe9, 0x69, 0xe7, 0x1e, 0x9e, 0x0e, 0x34, 0x17, 0x49, 0x98, 0x05, 0x0b, 0xb2, 0xc1, 0x98, 0x83,
   829  	0x33, 0x79, 0x69, 0xa3, 0xf9, 0xc1, 0x0b, 0x48, 0x51, 0x0f, 0x4b, 0xd4, 0xc3, 0xb2, 0x09, 0xff,
   830  	0x32, 0x49, 0xfc, 0x7b, 0x17, 0x66, 0x58, 0x0c, 0xbd, 0x07, 0x25, 0xc2, 0x14, 0x15, 0x92, 0x84,
   831  	0xa2, 0x5b, 0x24, 0x2c, 0xa5, 0xc0, 0xfc, 0x1a, 0x8a, 0xed, 0x84, 0xc6, 0x94, 0xf9, 0x43, 0x74,
   832  	0x0a, 0xc5, 0x58, 0xad, 0xe5, 0xcd, 0x8d, 0xe6, 0xfb, 0xcb, 0x93, 0x57, 0x4e, 0x2a, 0xef, 0x59,
   833  	0x90, 0xf9, 0xab, 0x0e, 0xc6, 0xd4, 0xd8, 0xbe, 0xbe, 0x5c, 0x49, 0xe4, 0xa7, 0x80, 0xa6, 0x31,
   834  	0x5e, 0x4c, 0x87, 0x5e, 0x96, 0xd5, 0x37, 0xa7, 0x96, 0x36, 0x1d, 0xca, 0x02, 0xa1, 0x0b, 0x28,
   835  	0x67, 0xbd, 0x15, 0xaf, 0xeb, 0x49, 0x50, 0xe9, 0x19, 0x19, 0x40, 0x33, 0x82, 0x92, 0x3d, 0x65,
   836  	0x66, 0xc3, 0x3a, 0x1f, 0x43, 0x4e, 0x14, 0x41, 0x1d, 0xff, 0xee, 0xca, 0xb2, 0xaa, 0x63, 0xa5,
   837  	0xb3, 0xf9, 0x19, 0xe4, 0x6e, 0x29, 0xc7, 0xe8, 0x08, 0x72, 0x63, 0xca, 0xb1, 0xa2, 0x75, 0x79,
   838  	0xb0, 0x70, 0x74, 0xa5, 0x9b, 0xf9, 0x93, 0x0e, 0x05, 0xc7, 0x67, 0x32, 0x74, 0xb3, 0x2c, 0x3f,
   839  	0x87, 0x9c, 0x40, 0x93, 0x59, 0xee, 0xac, 0x68, 0xbe, 0x0e, 0xe9, 0x47, 0x38, 0x68, 0xb1, 0xfe,
   840  	0xcd, 0x7d, 0x8c, 0x5d, 0xe9, 0x2f, 0xd0, 0x48, 0x14, 0xe0, 0x1f, 0x65, 0x8b, 0xe5, 0xdd, 0x74,
   841  	0x63, 0xfe, 0xae, 0x43, 0x59, 0x24, 0xd1, 0xc1, 0xbc, 0xe5, 0x7f, 0xdf, 0x3c, 0xfe, 0x8f, 0x92,
   842  	0x71, 0xa0, 0x98, 0x76, 0x3d, 0x09, 0x54, 0xcb, 0xef, 0x2f, 0x8d, 0x95, 0xa5, 0x3c, 0xff, 0xca,
   843  	0xde, 0x15, 0x8c, 0x4f, 0x9e, 0x0e, 0x0a, 0xea, 0x83, 0x5b, 0x90, 0xe1, 0xe7, 0x81, 0xf9, 0xb7,
   844  	0x0e, 0x86, 0xba, 0x80, 0x4d, 0x38, 0xfb, 0xbf, 0xe5, 0x8f, 0x4e, 0x20, 0x2f, 0x1a, 0x82, 0xc9,
   845  	0xb9, 0xdd, 0xa0, 0xe9, 0xd3, 0x28, 0xf3, 0x97, 0x3c, 0x14, 0x5a, 0x98, 0x31, 0xbf, 0x8f, 0x51,
   846  	0x0b, 0x76, 0x22, 0x7c, 0x97, 0xce, 0x9a, 0x27, 0xa5, 0x36, 0x6d, 0xc6, 0x8f, 0xac, 0x15, 0xff,
   847  	0x09, 0x2b, 0xab, 0xe6, 0x8e, 0xe6, 0x96, 0xa3, 0xac, 0xba, 0xb7, 0x61, 0x57, 0xc0, 0x8d, 0x85,
   848  	0x6c, 0x7a, 0x32, 0x5d, 0xc9, 0x9d, 0xd1, 0xfc, 0xf8, 0xdf, 0xf0, 0xe6, 0x2a, 0xeb, 0x68, 0x6e,
   849  	0x25, 0x5a, 0x90, 0xdd, 0xac, 0xfc, 0x2c, 0x9f, 0xf1, 0x39, 0xd4, 0x54, 0x65, 0x9c, 0x8c, 0xfc,
   850  	0xa0, 0xf3, 0x17, 0x42, 0x91, 0x52, 0xff, 0xe1, 0x5a, 0x90, 0xf6, 0xf5, 0xa5, 0xb3, 0xa8, 0x13,
   851  	0xe8, 0x0c, 0x60, 0xae, 0xbb, 0x8a, 0x7c, 0x73, 0x25, 0xd0, 0x4c, 0x52, 0x1c, 0xcd, 0x2d, 0xcd,
   852  	0x94, 0x57, 0x28, 0x86, 0x1c, 0xfa, 0xed, 0xa5, 0x5a, 0x3a, 0x0f, 0x17, 0x0d, 0xea, 0x68, 0xe9,
   853  	0xe8, 0xa3, 0x13, 0x28, 0x0e, 0x7c, 0xe6, 0xc9, 0xc0, 0x82, 0x0c, 0xac, 0xaf, 0x0c, 0x54, 0x12,
   854  	0xe1, 0x68, 0x6e, 0x61, 0xa0, 0xd4, 0xa2, 0x05, 0x3b, 0x22, 0x54, 0xfe, 0x87, 0x42, 0x31, 0xb2,
   855  	0xd5, 0xe2, 0x9a, 0x2a, 0x67, 0xe7, 0x5b, 0x54, 0x79, 0x9c, 0x9d, 0xf7, 0x0b, 0xa8, 0xcc, 0xe0,
   856  	0x44, 0x9f, 0x55, 0x4b, 0x6b, 0x38, 0xcd, 0x0c, 0x9b, 0xe0, 0x74, 0x3c, 0xdf, 0xda, 0x79, 0xd8,
   857  	0x62, 0xa3, 0xd0, 0xfe, 0xe6, 0x61, 0x52, 0xd3, 0x1f, 0x27, 0x35, 0xfd, 0xcf, 0x49, 0x4d, 0xff,
   858  	0xf9, 0xb9, 0xa6, 0x3d, 0x3e, 0xd7, 0xb4, 0x3f, 0x9e, 0x6b, 0xda, 0xb7, 0xa7, 0x7d, 0xc2, 0x07,
   859  	0xa3, 0xae, 0xd5, 0xa3, 0x61, 0xc3, 0x4f, 0xc8, 0x91, 0x1f, 0xf5, 0x06, 0x34, 0x69, 0x30, 0x4c,
   860  	0x8e, 0x32, 0xaf, 0x8f, 0xf4, 0xe1, 0xb2, 0xec, 0xf5, 0xd3, 0xdd, 0x96, 0xb6, 0xe3, 0x7f, 0x02,
   861  	0x00, 0x00, 0xff, 0xff, 0xca, 0x8b, 0x13, 0xe8, 0x1c, 0x09, 0x00, 0x00,
   862  }
   863  
   864  func (m *NewRoundStep) Marshal() (dAtA []byte, err error) {
   865  	size := m.Size()
   866  	dAtA = make([]byte, size)
   867  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   868  	if err != nil {
   869  		return nil, err
   870  	}
   871  	return dAtA[:n], nil
   872  }
   873  
   874  func (m *NewRoundStep) MarshalTo(dAtA []byte) (int, error) {
   875  	size := m.Size()
   876  	return m.MarshalToSizedBuffer(dAtA[:size])
   877  }
   878  
   879  func (m *NewRoundStep) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   880  	i := len(dAtA)
   881  	_ = i
   882  	var l int
   883  	_ = l
   884  	if m.LastCommitRound != 0 {
   885  		i = encodeVarintTypes(dAtA, i, uint64(m.LastCommitRound))
   886  		i--
   887  		dAtA[i] = 0x28
   888  	}
   889  	if m.SecondsSinceStartTime != 0 {
   890  		i = encodeVarintTypes(dAtA, i, uint64(m.SecondsSinceStartTime))
   891  		i--
   892  		dAtA[i] = 0x20
   893  	}
   894  	if m.Step != 0 {
   895  		i = encodeVarintTypes(dAtA, i, uint64(m.Step))
   896  		i--
   897  		dAtA[i] = 0x18
   898  	}
   899  	if m.Round != 0 {
   900  		i = encodeVarintTypes(dAtA, i, uint64(m.Round))
   901  		i--
   902  		dAtA[i] = 0x10
   903  	}
   904  	if m.Height != 0 {
   905  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
   906  		i--
   907  		dAtA[i] = 0x8
   908  	}
   909  	return len(dAtA) - i, nil
   910  }
   911  
   912  func (m *NewValidBlock) Marshal() (dAtA []byte, err error) {
   913  	size := m.Size()
   914  	dAtA = make([]byte, size)
   915  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   916  	if err != nil {
   917  		return nil, err
   918  	}
   919  	return dAtA[:n], nil
   920  }
   921  
   922  func (m *NewValidBlock) MarshalTo(dAtA []byte) (int, error) {
   923  	size := m.Size()
   924  	return m.MarshalToSizedBuffer(dAtA[:size])
   925  }
   926  
   927  func (m *NewValidBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   928  	i := len(dAtA)
   929  	_ = i
   930  	var l int
   931  	_ = l
   932  	if m.IsCommit {
   933  		i--
   934  		if m.IsCommit {
   935  			dAtA[i] = 1
   936  		} else {
   937  			dAtA[i] = 0
   938  		}
   939  		i--
   940  		dAtA[i] = 0x28
   941  	}
   942  	if m.BlockParts != nil {
   943  		{
   944  			size, err := m.BlockParts.MarshalToSizedBuffer(dAtA[:i])
   945  			if err != nil {
   946  				return 0, err
   947  			}
   948  			i -= size
   949  			i = encodeVarintTypes(dAtA, i, uint64(size))
   950  		}
   951  		i--
   952  		dAtA[i] = 0x22
   953  	}
   954  	{
   955  		size, err := m.BlockPartSetHeader.MarshalToSizedBuffer(dAtA[:i])
   956  		if err != nil {
   957  			return 0, err
   958  		}
   959  		i -= size
   960  		i = encodeVarintTypes(dAtA, i, uint64(size))
   961  	}
   962  	i--
   963  	dAtA[i] = 0x1a
   964  	if m.Round != 0 {
   965  		i = encodeVarintTypes(dAtA, i, uint64(m.Round))
   966  		i--
   967  		dAtA[i] = 0x10
   968  	}
   969  	if m.Height != 0 {
   970  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
   971  		i--
   972  		dAtA[i] = 0x8
   973  	}
   974  	return len(dAtA) - i, nil
   975  }
   976  
   977  func (m *Proposal) Marshal() (dAtA []byte, err error) {
   978  	size := m.Size()
   979  	dAtA = make([]byte, size)
   980  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   981  	if err != nil {
   982  		return nil, err
   983  	}
   984  	return dAtA[:n], nil
   985  }
   986  
   987  func (m *Proposal) MarshalTo(dAtA []byte) (int, error) {
   988  	size := m.Size()
   989  	return m.MarshalToSizedBuffer(dAtA[:size])
   990  }
   991  
   992  func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   993  	i := len(dAtA)
   994  	_ = i
   995  	var l int
   996  	_ = l
   997  	{
   998  		size, err := m.Proposal.MarshalToSizedBuffer(dAtA[:i])
   999  		if err != nil {
  1000  			return 0, err
  1001  		}
  1002  		i -= size
  1003  		i = encodeVarintTypes(dAtA, i, uint64(size))
  1004  	}
  1005  	i--
  1006  	dAtA[i] = 0xa
  1007  	return len(dAtA) - i, nil
  1008  }
  1009  
  1010  func (m *ProposalPOL) Marshal() (dAtA []byte, err error) {
  1011  	size := m.Size()
  1012  	dAtA = make([]byte, size)
  1013  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1014  	if err != nil {
  1015  		return nil, err
  1016  	}
  1017  	return dAtA[:n], nil
  1018  }
  1019  
  1020  func (m *ProposalPOL) MarshalTo(dAtA []byte) (int, error) {
  1021  	size := m.Size()
  1022  	return m.MarshalToSizedBuffer(dAtA[:size])
  1023  }
  1024  
  1025  func (m *ProposalPOL) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1026  	i := len(dAtA)
  1027  	_ = i
  1028  	var l int
  1029  	_ = l
  1030  	{
  1031  		size, err := m.ProposalPol.MarshalToSizedBuffer(dAtA[:i])
  1032  		if err != nil {
  1033  			return 0, err
  1034  		}
  1035  		i -= size
  1036  		i = encodeVarintTypes(dAtA, i, uint64(size))
  1037  	}
  1038  	i--
  1039  	dAtA[i] = 0x1a
  1040  	if m.ProposalPolRound != 0 {
  1041  		i = encodeVarintTypes(dAtA, i, uint64(m.ProposalPolRound))
  1042  		i--
  1043  		dAtA[i] = 0x10
  1044  	}
  1045  	if m.Height != 0 {
  1046  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  1047  		i--
  1048  		dAtA[i] = 0x8
  1049  	}
  1050  	return len(dAtA) - i, nil
  1051  }
  1052  
  1053  func (m *BlockPart) Marshal() (dAtA []byte, err error) {
  1054  	size := m.Size()
  1055  	dAtA = make([]byte, size)
  1056  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1057  	if err != nil {
  1058  		return nil, err
  1059  	}
  1060  	return dAtA[:n], nil
  1061  }
  1062  
  1063  func (m *BlockPart) MarshalTo(dAtA []byte) (int, error) {
  1064  	size := m.Size()
  1065  	return m.MarshalToSizedBuffer(dAtA[:size])
  1066  }
  1067  
  1068  func (m *BlockPart) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1069  	i := len(dAtA)
  1070  	_ = i
  1071  	var l int
  1072  	_ = l
  1073  	{
  1074  		size, err := m.Part.MarshalToSizedBuffer(dAtA[:i])
  1075  		if err != nil {
  1076  			return 0, err
  1077  		}
  1078  		i -= size
  1079  		i = encodeVarintTypes(dAtA, i, uint64(size))
  1080  	}
  1081  	i--
  1082  	dAtA[i] = 0x1a
  1083  	if m.Round != 0 {
  1084  		i = encodeVarintTypes(dAtA, i, uint64(m.Round))
  1085  		i--
  1086  		dAtA[i] = 0x10
  1087  	}
  1088  	if m.Height != 0 {
  1089  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  1090  		i--
  1091  		dAtA[i] = 0x8
  1092  	}
  1093  	return len(dAtA) - i, nil
  1094  }
  1095  
  1096  func (m *Vote) Marshal() (dAtA []byte, err error) {
  1097  	size := m.Size()
  1098  	dAtA = make([]byte, size)
  1099  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1100  	if err != nil {
  1101  		return nil, err
  1102  	}
  1103  	return dAtA[:n], nil
  1104  }
  1105  
  1106  func (m *Vote) MarshalTo(dAtA []byte) (int, error) {
  1107  	size := m.Size()
  1108  	return m.MarshalToSizedBuffer(dAtA[:size])
  1109  }
  1110  
  1111  func (m *Vote) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1112  	i := len(dAtA)
  1113  	_ = i
  1114  	var l int
  1115  	_ = l
  1116  	if m.Vote != nil {
  1117  		{
  1118  			size, err := m.Vote.MarshalToSizedBuffer(dAtA[:i])
  1119  			if err != nil {
  1120  				return 0, err
  1121  			}
  1122  			i -= size
  1123  			i = encodeVarintTypes(dAtA, i, uint64(size))
  1124  		}
  1125  		i--
  1126  		dAtA[i] = 0xa
  1127  	}
  1128  	return len(dAtA) - i, nil
  1129  }
  1130  
  1131  func (m *HasVote) Marshal() (dAtA []byte, err error) {
  1132  	size := m.Size()
  1133  	dAtA = make([]byte, size)
  1134  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1135  	if err != nil {
  1136  		return nil, err
  1137  	}
  1138  	return dAtA[:n], nil
  1139  }
  1140  
  1141  func (m *HasVote) MarshalTo(dAtA []byte) (int, error) {
  1142  	size := m.Size()
  1143  	return m.MarshalToSizedBuffer(dAtA[:size])
  1144  }
  1145  
  1146  func (m *HasVote) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1147  	i := len(dAtA)
  1148  	_ = i
  1149  	var l int
  1150  	_ = l
  1151  	if m.Index != 0 {
  1152  		i = encodeVarintTypes(dAtA, i, uint64(m.Index))
  1153  		i--
  1154  		dAtA[i] = 0x20
  1155  	}
  1156  	if m.Type != 0 {
  1157  		i = encodeVarintTypes(dAtA, i, uint64(m.Type))
  1158  		i--
  1159  		dAtA[i] = 0x18
  1160  	}
  1161  	if m.Round != 0 {
  1162  		i = encodeVarintTypes(dAtA, i, uint64(m.Round))
  1163  		i--
  1164  		dAtA[i] = 0x10
  1165  	}
  1166  	if m.Height != 0 {
  1167  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  1168  		i--
  1169  		dAtA[i] = 0x8
  1170  	}
  1171  	return len(dAtA) - i, nil
  1172  }
  1173  
  1174  func (m *VoteSetMaj23) Marshal() (dAtA []byte, err error) {
  1175  	size := m.Size()
  1176  	dAtA = make([]byte, size)
  1177  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1178  	if err != nil {
  1179  		return nil, err
  1180  	}
  1181  	return dAtA[:n], nil
  1182  }
  1183  
  1184  func (m *VoteSetMaj23) MarshalTo(dAtA []byte) (int, error) {
  1185  	size := m.Size()
  1186  	return m.MarshalToSizedBuffer(dAtA[:size])
  1187  }
  1188  
  1189  func (m *VoteSetMaj23) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1190  	i := len(dAtA)
  1191  	_ = i
  1192  	var l int
  1193  	_ = l
  1194  	{
  1195  		size, err := m.BlockID.MarshalToSizedBuffer(dAtA[:i])
  1196  		if err != nil {
  1197  			return 0, err
  1198  		}
  1199  		i -= size
  1200  		i = encodeVarintTypes(dAtA, i, uint64(size))
  1201  	}
  1202  	i--
  1203  	dAtA[i] = 0x22
  1204  	if m.Type != 0 {
  1205  		i = encodeVarintTypes(dAtA, i, uint64(m.Type))
  1206  		i--
  1207  		dAtA[i] = 0x18
  1208  	}
  1209  	if m.Round != 0 {
  1210  		i = encodeVarintTypes(dAtA, i, uint64(m.Round))
  1211  		i--
  1212  		dAtA[i] = 0x10
  1213  	}
  1214  	if m.Height != 0 {
  1215  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  1216  		i--
  1217  		dAtA[i] = 0x8
  1218  	}
  1219  	return len(dAtA) - i, nil
  1220  }
  1221  
  1222  func (m *VoteSetBits) Marshal() (dAtA []byte, err error) {
  1223  	size := m.Size()
  1224  	dAtA = make([]byte, size)
  1225  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1226  	if err != nil {
  1227  		return nil, err
  1228  	}
  1229  	return dAtA[:n], nil
  1230  }
  1231  
  1232  func (m *VoteSetBits) MarshalTo(dAtA []byte) (int, error) {
  1233  	size := m.Size()
  1234  	return m.MarshalToSizedBuffer(dAtA[:size])
  1235  }
  1236  
  1237  func (m *VoteSetBits) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1238  	i := len(dAtA)
  1239  	_ = i
  1240  	var l int
  1241  	_ = l
  1242  	{
  1243  		size, err := m.Votes.MarshalToSizedBuffer(dAtA[:i])
  1244  		if err != nil {
  1245  			return 0, err
  1246  		}
  1247  		i -= size
  1248  		i = encodeVarintTypes(dAtA, i, uint64(size))
  1249  	}
  1250  	i--
  1251  	dAtA[i] = 0x2a
  1252  	{
  1253  		size, err := m.BlockID.MarshalToSizedBuffer(dAtA[:i])
  1254  		if err != nil {
  1255  			return 0, err
  1256  		}
  1257  		i -= size
  1258  		i = encodeVarintTypes(dAtA, i, uint64(size))
  1259  	}
  1260  	i--
  1261  	dAtA[i] = 0x22
  1262  	if m.Type != 0 {
  1263  		i = encodeVarintTypes(dAtA, i, uint64(m.Type))
  1264  		i--
  1265  		dAtA[i] = 0x18
  1266  	}
  1267  	if m.Round != 0 {
  1268  		i = encodeVarintTypes(dAtA, i, uint64(m.Round))
  1269  		i--
  1270  		dAtA[i] = 0x10
  1271  	}
  1272  	if m.Height != 0 {
  1273  		i = encodeVarintTypes(dAtA, i, uint64(m.Height))
  1274  		i--
  1275  		dAtA[i] = 0x8
  1276  	}
  1277  	return len(dAtA) - i, nil
  1278  }
  1279  
  1280  func (m *Message) Marshal() (dAtA []byte, err error) {
  1281  	size := m.Size()
  1282  	dAtA = make([]byte, size)
  1283  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1284  	if err != nil {
  1285  		return nil, err
  1286  	}
  1287  	return dAtA[:n], nil
  1288  }
  1289  
  1290  func (m *Message) MarshalTo(dAtA []byte) (int, error) {
  1291  	size := m.Size()
  1292  	return m.MarshalToSizedBuffer(dAtA[:size])
  1293  }
  1294  
  1295  func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1296  	i := len(dAtA)
  1297  	_ = i
  1298  	var l int
  1299  	_ = l
  1300  	if m.Sum != nil {
  1301  		{
  1302  			size := m.Sum.Size()
  1303  			i -= size
  1304  			if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil {
  1305  				return 0, err
  1306  			}
  1307  		}
  1308  	}
  1309  	return len(dAtA) - i, nil
  1310  }
  1311  
  1312  func (m *Message_NewRoundStep) MarshalTo(dAtA []byte) (int, error) {
  1313  	size := m.Size()
  1314  	return m.MarshalToSizedBuffer(dAtA[:size])
  1315  }
  1316  
  1317  func (m *Message_NewRoundStep) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1318  	i := len(dAtA)
  1319  	if m.NewRoundStep != nil {
  1320  		{
  1321  			size, err := m.NewRoundStep.MarshalToSizedBuffer(dAtA[:i])
  1322  			if err != nil {
  1323  				return 0, err
  1324  			}
  1325  			i -= size
  1326  			i = encodeVarintTypes(dAtA, i, uint64(size))
  1327  		}
  1328  		i--
  1329  		dAtA[i] = 0xa
  1330  	}
  1331  	return len(dAtA) - i, nil
  1332  }
  1333  func (m *Message_NewValidBlock) MarshalTo(dAtA []byte) (int, error) {
  1334  	size := m.Size()
  1335  	return m.MarshalToSizedBuffer(dAtA[:size])
  1336  }
  1337  
  1338  func (m *Message_NewValidBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1339  	i := len(dAtA)
  1340  	if m.NewValidBlock != nil {
  1341  		{
  1342  			size, err := m.NewValidBlock.MarshalToSizedBuffer(dAtA[:i])
  1343  			if err != nil {
  1344  				return 0, err
  1345  			}
  1346  			i -= size
  1347  			i = encodeVarintTypes(dAtA, i, uint64(size))
  1348  		}
  1349  		i--
  1350  		dAtA[i] = 0x12
  1351  	}
  1352  	return len(dAtA) - i, nil
  1353  }
  1354  func (m *Message_Proposal) MarshalTo(dAtA []byte) (int, error) {
  1355  	size := m.Size()
  1356  	return m.MarshalToSizedBuffer(dAtA[:size])
  1357  }
  1358  
  1359  func (m *Message_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1360  	i := len(dAtA)
  1361  	if m.Proposal != nil {
  1362  		{
  1363  			size, err := m.Proposal.MarshalToSizedBuffer(dAtA[:i])
  1364  			if err != nil {
  1365  				return 0, err
  1366  			}
  1367  			i -= size
  1368  			i = encodeVarintTypes(dAtA, i, uint64(size))
  1369  		}
  1370  		i--
  1371  		dAtA[i] = 0x1a
  1372  	}
  1373  	return len(dAtA) - i, nil
  1374  }
  1375  func (m *Message_ProposalPol) MarshalTo(dAtA []byte) (int, error) {
  1376  	size := m.Size()
  1377  	return m.MarshalToSizedBuffer(dAtA[:size])
  1378  }
  1379  
  1380  func (m *Message_ProposalPol) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1381  	i := len(dAtA)
  1382  	if m.ProposalPol != nil {
  1383  		{
  1384  			size, err := m.ProposalPol.MarshalToSizedBuffer(dAtA[:i])
  1385  			if err != nil {
  1386  				return 0, err
  1387  			}
  1388  			i -= size
  1389  			i = encodeVarintTypes(dAtA, i, uint64(size))
  1390  		}
  1391  		i--
  1392  		dAtA[i] = 0x22
  1393  	}
  1394  	return len(dAtA) - i, nil
  1395  }
  1396  func (m *Message_BlockPart) MarshalTo(dAtA []byte) (int, error) {
  1397  	size := m.Size()
  1398  	return m.MarshalToSizedBuffer(dAtA[:size])
  1399  }
  1400  
  1401  func (m *Message_BlockPart) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1402  	i := len(dAtA)
  1403  	if m.BlockPart != nil {
  1404  		{
  1405  			size, err := m.BlockPart.MarshalToSizedBuffer(dAtA[:i])
  1406  			if err != nil {
  1407  				return 0, err
  1408  			}
  1409  			i -= size
  1410  			i = encodeVarintTypes(dAtA, i, uint64(size))
  1411  		}
  1412  		i--
  1413  		dAtA[i] = 0x2a
  1414  	}
  1415  	return len(dAtA) - i, nil
  1416  }
  1417  func (m *Message_Vote) MarshalTo(dAtA []byte) (int, error) {
  1418  	size := m.Size()
  1419  	return m.MarshalToSizedBuffer(dAtA[:size])
  1420  }
  1421  
  1422  func (m *Message_Vote) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1423  	i := len(dAtA)
  1424  	if m.Vote != nil {
  1425  		{
  1426  			size, err := m.Vote.MarshalToSizedBuffer(dAtA[:i])
  1427  			if err != nil {
  1428  				return 0, err
  1429  			}
  1430  			i -= size
  1431  			i = encodeVarintTypes(dAtA, i, uint64(size))
  1432  		}
  1433  		i--
  1434  		dAtA[i] = 0x32
  1435  	}
  1436  	return len(dAtA) - i, nil
  1437  }
  1438  func (m *Message_HasVote) MarshalTo(dAtA []byte) (int, error) {
  1439  	size := m.Size()
  1440  	return m.MarshalToSizedBuffer(dAtA[:size])
  1441  }
  1442  
  1443  func (m *Message_HasVote) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1444  	i := len(dAtA)
  1445  	if m.HasVote != nil {
  1446  		{
  1447  			size, err := m.HasVote.MarshalToSizedBuffer(dAtA[:i])
  1448  			if err != nil {
  1449  				return 0, err
  1450  			}
  1451  			i -= size
  1452  			i = encodeVarintTypes(dAtA, i, uint64(size))
  1453  		}
  1454  		i--
  1455  		dAtA[i] = 0x3a
  1456  	}
  1457  	return len(dAtA) - i, nil
  1458  }
  1459  func (m *Message_VoteSetMaj23) MarshalTo(dAtA []byte) (int, error) {
  1460  	size := m.Size()
  1461  	return m.MarshalToSizedBuffer(dAtA[:size])
  1462  }
  1463  
  1464  func (m *Message_VoteSetMaj23) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1465  	i := len(dAtA)
  1466  	if m.VoteSetMaj23 != nil {
  1467  		{
  1468  			size, err := m.VoteSetMaj23.MarshalToSizedBuffer(dAtA[:i])
  1469  			if err != nil {
  1470  				return 0, err
  1471  			}
  1472  			i -= size
  1473  			i = encodeVarintTypes(dAtA, i, uint64(size))
  1474  		}
  1475  		i--
  1476  		dAtA[i] = 0x42
  1477  	}
  1478  	return len(dAtA) - i, nil
  1479  }
  1480  func (m *Message_VoteSetBits) MarshalTo(dAtA []byte) (int, error) {
  1481  	size := m.Size()
  1482  	return m.MarshalToSizedBuffer(dAtA[:size])
  1483  }
  1484  
  1485  func (m *Message_VoteSetBits) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1486  	i := len(dAtA)
  1487  	if m.VoteSetBits != nil {
  1488  		{
  1489  			size, err := m.VoteSetBits.MarshalToSizedBuffer(dAtA[:i])
  1490  			if err != nil {
  1491  				return 0, err
  1492  			}
  1493  			i -= size
  1494  			i = encodeVarintTypes(dAtA, i, uint64(size))
  1495  		}
  1496  		i--
  1497  		dAtA[i] = 0x4a
  1498  	}
  1499  	return len(dAtA) - i, nil
  1500  }
  1501  func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
  1502  	offset -= sovTypes(v)
  1503  	base := offset
  1504  	for v >= 1<<7 {
  1505  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1506  		v >>= 7
  1507  		offset++
  1508  	}
  1509  	dAtA[offset] = uint8(v)
  1510  	return base
  1511  }
  1512  func (m *NewRoundStep) Size() (n int) {
  1513  	if m == nil {
  1514  		return 0
  1515  	}
  1516  	var l int
  1517  	_ = l
  1518  	if m.Height != 0 {
  1519  		n += 1 + sovTypes(uint64(m.Height))
  1520  	}
  1521  	if m.Round != 0 {
  1522  		n += 1 + sovTypes(uint64(m.Round))
  1523  	}
  1524  	if m.Step != 0 {
  1525  		n += 1 + sovTypes(uint64(m.Step))
  1526  	}
  1527  	if m.SecondsSinceStartTime != 0 {
  1528  		n += 1 + sovTypes(uint64(m.SecondsSinceStartTime))
  1529  	}
  1530  	if m.LastCommitRound != 0 {
  1531  		n += 1 + sovTypes(uint64(m.LastCommitRound))
  1532  	}
  1533  	return n
  1534  }
  1535  
  1536  func (m *NewValidBlock) Size() (n int) {
  1537  	if m == nil {
  1538  		return 0
  1539  	}
  1540  	var l int
  1541  	_ = l
  1542  	if m.Height != 0 {
  1543  		n += 1 + sovTypes(uint64(m.Height))
  1544  	}
  1545  	if m.Round != 0 {
  1546  		n += 1 + sovTypes(uint64(m.Round))
  1547  	}
  1548  	l = m.BlockPartSetHeader.Size()
  1549  	n += 1 + l + sovTypes(uint64(l))
  1550  	if m.BlockParts != nil {
  1551  		l = m.BlockParts.Size()
  1552  		n += 1 + l + sovTypes(uint64(l))
  1553  	}
  1554  	if m.IsCommit {
  1555  		n += 2
  1556  	}
  1557  	return n
  1558  }
  1559  
  1560  func (m *Proposal) Size() (n int) {
  1561  	if m == nil {
  1562  		return 0
  1563  	}
  1564  	var l int
  1565  	_ = l
  1566  	l = m.Proposal.Size()
  1567  	n += 1 + l + sovTypes(uint64(l))
  1568  	return n
  1569  }
  1570  
  1571  func (m *ProposalPOL) Size() (n int) {
  1572  	if m == nil {
  1573  		return 0
  1574  	}
  1575  	var l int
  1576  	_ = l
  1577  	if m.Height != 0 {
  1578  		n += 1 + sovTypes(uint64(m.Height))
  1579  	}
  1580  	if m.ProposalPolRound != 0 {
  1581  		n += 1 + sovTypes(uint64(m.ProposalPolRound))
  1582  	}
  1583  	l = m.ProposalPol.Size()
  1584  	n += 1 + l + sovTypes(uint64(l))
  1585  	return n
  1586  }
  1587  
  1588  func (m *BlockPart) Size() (n int) {
  1589  	if m == nil {
  1590  		return 0
  1591  	}
  1592  	var l int
  1593  	_ = l
  1594  	if m.Height != 0 {
  1595  		n += 1 + sovTypes(uint64(m.Height))
  1596  	}
  1597  	if m.Round != 0 {
  1598  		n += 1 + sovTypes(uint64(m.Round))
  1599  	}
  1600  	l = m.Part.Size()
  1601  	n += 1 + l + sovTypes(uint64(l))
  1602  	return n
  1603  }
  1604  
  1605  func (m *Vote) Size() (n int) {
  1606  	if m == nil {
  1607  		return 0
  1608  	}
  1609  	var l int
  1610  	_ = l
  1611  	if m.Vote != nil {
  1612  		l = m.Vote.Size()
  1613  		n += 1 + l + sovTypes(uint64(l))
  1614  	}
  1615  	return n
  1616  }
  1617  
  1618  func (m *HasVote) Size() (n int) {
  1619  	if m == nil {
  1620  		return 0
  1621  	}
  1622  	var l int
  1623  	_ = l
  1624  	if m.Height != 0 {
  1625  		n += 1 + sovTypes(uint64(m.Height))
  1626  	}
  1627  	if m.Round != 0 {
  1628  		n += 1 + sovTypes(uint64(m.Round))
  1629  	}
  1630  	if m.Type != 0 {
  1631  		n += 1 + sovTypes(uint64(m.Type))
  1632  	}
  1633  	if m.Index != 0 {
  1634  		n += 1 + sovTypes(uint64(m.Index))
  1635  	}
  1636  	return n
  1637  }
  1638  
  1639  func (m *VoteSetMaj23) Size() (n int) {
  1640  	if m == nil {
  1641  		return 0
  1642  	}
  1643  	var l int
  1644  	_ = l
  1645  	if m.Height != 0 {
  1646  		n += 1 + sovTypes(uint64(m.Height))
  1647  	}
  1648  	if m.Round != 0 {
  1649  		n += 1 + sovTypes(uint64(m.Round))
  1650  	}
  1651  	if m.Type != 0 {
  1652  		n += 1 + sovTypes(uint64(m.Type))
  1653  	}
  1654  	l = m.BlockID.Size()
  1655  	n += 1 + l + sovTypes(uint64(l))
  1656  	return n
  1657  }
  1658  
  1659  func (m *VoteSetBits) Size() (n int) {
  1660  	if m == nil {
  1661  		return 0
  1662  	}
  1663  	var l int
  1664  	_ = l
  1665  	if m.Height != 0 {
  1666  		n += 1 + sovTypes(uint64(m.Height))
  1667  	}
  1668  	if m.Round != 0 {
  1669  		n += 1 + sovTypes(uint64(m.Round))
  1670  	}
  1671  	if m.Type != 0 {
  1672  		n += 1 + sovTypes(uint64(m.Type))
  1673  	}
  1674  	l = m.BlockID.Size()
  1675  	n += 1 + l + sovTypes(uint64(l))
  1676  	l = m.Votes.Size()
  1677  	n += 1 + l + sovTypes(uint64(l))
  1678  	return n
  1679  }
  1680  
  1681  func (m *Message) Size() (n int) {
  1682  	if m == nil {
  1683  		return 0
  1684  	}
  1685  	var l int
  1686  	_ = l
  1687  	if m.Sum != nil {
  1688  		n += m.Sum.Size()
  1689  	}
  1690  	return n
  1691  }
  1692  
  1693  func (m *Message_NewRoundStep) Size() (n int) {
  1694  	if m == nil {
  1695  		return 0
  1696  	}
  1697  	var l int
  1698  	_ = l
  1699  	if m.NewRoundStep != nil {
  1700  		l = m.NewRoundStep.Size()
  1701  		n += 1 + l + sovTypes(uint64(l))
  1702  	}
  1703  	return n
  1704  }
  1705  func (m *Message_NewValidBlock) Size() (n int) {
  1706  	if m == nil {
  1707  		return 0
  1708  	}
  1709  	var l int
  1710  	_ = l
  1711  	if m.NewValidBlock != nil {
  1712  		l = m.NewValidBlock.Size()
  1713  		n += 1 + l + sovTypes(uint64(l))
  1714  	}
  1715  	return n
  1716  }
  1717  func (m *Message_Proposal) Size() (n int) {
  1718  	if m == nil {
  1719  		return 0
  1720  	}
  1721  	var l int
  1722  	_ = l
  1723  	if m.Proposal != nil {
  1724  		l = m.Proposal.Size()
  1725  		n += 1 + l + sovTypes(uint64(l))
  1726  	}
  1727  	return n
  1728  }
  1729  func (m *Message_ProposalPol) Size() (n int) {
  1730  	if m == nil {
  1731  		return 0
  1732  	}
  1733  	var l int
  1734  	_ = l
  1735  	if m.ProposalPol != nil {
  1736  		l = m.ProposalPol.Size()
  1737  		n += 1 + l + sovTypes(uint64(l))
  1738  	}
  1739  	return n
  1740  }
  1741  func (m *Message_BlockPart) Size() (n int) {
  1742  	if m == nil {
  1743  		return 0
  1744  	}
  1745  	var l int
  1746  	_ = l
  1747  	if m.BlockPart != nil {
  1748  		l = m.BlockPart.Size()
  1749  		n += 1 + l + sovTypes(uint64(l))
  1750  	}
  1751  	return n
  1752  }
  1753  func (m *Message_Vote) Size() (n int) {
  1754  	if m == nil {
  1755  		return 0
  1756  	}
  1757  	var l int
  1758  	_ = l
  1759  	if m.Vote != nil {
  1760  		l = m.Vote.Size()
  1761  		n += 1 + l + sovTypes(uint64(l))
  1762  	}
  1763  	return n
  1764  }
  1765  func (m *Message_HasVote) Size() (n int) {
  1766  	if m == nil {
  1767  		return 0
  1768  	}
  1769  	var l int
  1770  	_ = l
  1771  	if m.HasVote != nil {
  1772  		l = m.HasVote.Size()
  1773  		n += 1 + l + sovTypes(uint64(l))
  1774  	}
  1775  	return n
  1776  }
  1777  func (m *Message_VoteSetMaj23) Size() (n int) {
  1778  	if m == nil {
  1779  		return 0
  1780  	}
  1781  	var l int
  1782  	_ = l
  1783  	if m.VoteSetMaj23 != nil {
  1784  		l = m.VoteSetMaj23.Size()
  1785  		n += 1 + l + sovTypes(uint64(l))
  1786  	}
  1787  	return n
  1788  }
  1789  func (m *Message_VoteSetBits) Size() (n int) {
  1790  	if m == nil {
  1791  		return 0
  1792  	}
  1793  	var l int
  1794  	_ = l
  1795  	if m.VoteSetBits != nil {
  1796  		l = m.VoteSetBits.Size()
  1797  		n += 1 + l + sovTypes(uint64(l))
  1798  	}
  1799  	return n
  1800  }
  1801  
  1802  func sovTypes(x uint64) (n int) {
  1803  	return (math_bits.Len64(x|1) + 6) / 7
  1804  }
  1805  func sozTypes(x uint64) (n int) {
  1806  	return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1807  }
  1808  func (m *NewRoundStep) Unmarshal(dAtA []byte) error {
  1809  	l := len(dAtA)
  1810  	iNdEx := 0
  1811  	for iNdEx < l {
  1812  		preIndex := iNdEx
  1813  		var wire uint64
  1814  		for shift := uint(0); ; shift += 7 {
  1815  			if shift >= 64 {
  1816  				return ErrIntOverflowTypes
  1817  			}
  1818  			if iNdEx >= l {
  1819  				return io.ErrUnexpectedEOF
  1820  			}
  1821  			b := dAtA[iNdEx]
  1822  			iNdEx++
  1823  			wire |= uint64(b&0x7F) << shift
  1824  			if b < 0x80 {
  1825  				break
  1826  			}
  1827  		}
  1828  		fieldNum := int32(wire >> 3)
  1829  		wireType := int(wire & 0x7)
  1830  		if wireType == 4 {
  1831  			return fmt.Errorf("proto: NewRoundStep: wiretype end group for non-group")
  1832  		}
  1833  		if fieldNum <= 0 {
  1834  			return fmt.Errorf("proto: NewRoundStep: illegal tag %d (wire type %d)", fieldNum, wire)
  1835  		}
  1836  		switch fieldNum {
  1837  		case 1:
  1838  			if wireType != 0 {
  1839  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  1840  			}
  1841  			m.Height = 0
  1842  			for shift := uint(0); ; shift += 7 {
  1843  				if shift >= 64 {
  1844  					return ErrIntOverflowTypes
  1845  				}
  1846  				if iNdEx >= l {
  1847  					return io.ErrUnexpectedEOF
  1848  				}
  1849  				b := dAtA[iNdEx]
  1850  				iNdEx++
  1851  				m.Height |= int64(b&0x7F) << shift
  1852  				if b < 0x80 {
  1853  					break
  1854  				}
  1855  			}
  1856  		case 2:
  1857  			if wireType != 0 {
  1858  				return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType)
  1859  			}
  1860  			m.Round = 0
  1861  			for shift := uint(0); ; shift += 7 {
  1862  				if shift >= 64 {
  1863  					return ErrIntOverflowTypes
  1864  				}
  1865  				if iNdEx >= l {
  1866  					return io.ErrUnexpectedEOF
  1867  				}
  1868  				b := dAtA[iNdEx]
  1869  				iNdEx++
  1870  				m.Round |= int32(b&0x7F) << shift
  1871  				if b < 0x80 {
  1872  					break
  1873  				}
  1874  			}
  1875  		case 3:
  1876  			if wireType != 0 {
  1877  				return fmt.Errorf("proto: wrong wireType = %d for field Step", wireType)
  1878  			}
  1879  			m.Step = 0
  1880  			for shift := uint(0); ; shift += 7 {
  1881  				if shift >= 64 {
  1882  					return ErrIntOverflowTypes
  1883  				}
  1884  				if iNdEx >= l {
  1885  					return io.ErrUnexpectedEOF
  1886  				}
  1887  				b := dAtA[iNdEx]
  1888  				iNdEx++
  1889  				m.Step |= uint32(b&0x7F) << shift
  1890  				if b < 0x80 {
  1891  					break
  1892  				}
  1893  			}
  1894  		case 4:
  1895  			if wireType != 0 {
  1896  				return fmt.Errorf("proto: wrong wireType = %d for field SecondsSinceStartTime", wireType)
  1897  			}
  1898  			m.SecondsSinceStartTime = 0
  1899  			for shift := uint(0); ; shift += 7 {
  1900  				if shift >= 64 {
  1901  					return ErrIntOverflowTypes
  1902  				}
  1903  				if iNdEx >= l {
  1904  					return io.ErrUnexpectedEOF
  1905  				}
  1906  				b := dAtA[iNdEx]
  1907  				iNdEx++
  1908  				m.SecondsSinceStartTime |= int64(b&0x7F) << shift
  1909  				if b < 0x80 {
  1910  					break
  1911  				}
  1912  			}
  1913  		case 5:
  1914  			if wireType != 0 {
  1915  				return fmt.Errorf("proto: wrong wireType = %d for field LastCommitRound", wireType)
  1916  			}
  1917  			m.LastCommitRound = 0
  1918  			for shift := uint(0); ; shift += 7 {
  1919  				if shift >= 64 {
  1920  					return ErrIntOverflowTypes
  1921  				}
  1922  				if iNdEx >= l {
  1923  					return io.ErrUnexpectedEOF
  1924  				}
  1925  				b := dAtA[iNdEx]
  1926  				iNdEx++
  1927  				m.LastCommitRound |= int32(b&0x7F) << shift
  1928  				if b < 0x80 {
  1929  					break
  1930  				}
  1931  			}
  1932  		default:
  1933  			iNdEx = preIndex
  1934  			skippy, err := skipTypes(dAtA[iNdEx:])
  1935  			if err != nil {
  1936  				return err
  1937  			}
  1938  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1939  				return ErrInvalidLengthTypes
  1940  			}
  1941  			if (iNdEx + skippy) > l {
  1942  				return io.ErrUnexpectedEOF
  1943  			}
  1944  			iNdEx += skippy
  1945  		}
  1946  	}
  1947  
  1948  	if iNdEx > l {
  1949  		return io.ErrUnexpectedEOF
  1950  	}
  1951  	return nil
  1952  }
  1953  func (m *NewValidBlock) Unmarshal(dAtA []byte) error {
  1954  	l := len(dAtA)
  1955  	iNdEx := 0
  1956  	for iNdEx < l {
  1957  		preIndex := iNdEx
  1958  		var wire uint64
  1959  		for shift := uint(0); ; shift += 7 {
  1960  			if shift >= 64 {
  1961  				return ErrIntOverflowTypes
  1962  			}
  1963  			if iNdEx >= l {
  1964  				return io.ErrUnexpectedEOF
  1965  			}
  1966  			b := dAtA[iNdEx]
  1967  			iNdEx++
  1968  			wire |= uint64(b&0x7F) << shift
  1969  			if b < 0x80 {
  1970  				break
  1971  			}
  1972  		}
  1973  		fieldNum := int32(wire >> 3)
  1974  		wireType := int(wire & 0x7)
  1975  		if wireType == 4 {
  1976  			return fmt.Errorf("proto: NewValidBlock: wiretype end group for non-group")
  1977  		}
  1978  		if fieldNum <= 0 {
  1979  			return fmt.Errorf("proto: NewValidBlock: illegal tag %d (wire type %d)", fieldNum, wire)
  1980  		}
  1981  		switch fieldNum {
  1982  		case 1:
  1983  			if wireType != 0 {
  1984  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  1985  			}
  1986  			m.Height = 0
  1987  			for shift := uint(0); ; shift += 7 {
  1988  				if shift >= 64 {
  1989  					return ErrIntOverflowTypes
  1990  				}
  1991  				if iNdEx >= l {
  1992  					return io.ErrUnexpectedEOF
  1993  				}
  1994  				b := dAtA[iNdEx]
  1995  				iNdEx++
  1996  				m.Height |= int64(b&0x7F) << shift
  1997  				if b < 0x80 {
  1998  					break
  1999  				}
  2000  			}
  2001  		case 2:
  2002  			if wireType != 0 {
  2003  				return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType)
  2004  			}
  2005  			m.Round = 0
  2006  			for shift := uint(0); ; shift += 7 {
  2007  				if shift >= 64 {
  2008  					return ErrIntOverflowTypes
  2009  				}
  2010  				if iNdEx >= l {
  2011  					return io.ErrUnexpectedEOF
  2012  				}
  2013  				b := dAtA[iNdEx]
  2014  				iNdEx++
  2015  				m.Round |= int32(b&0x7F) << shift
  2016  				if b < 0x80 {
  2017  					break
  2018  				}
  2019  			}
  2020  		case 3:
  2021  			if wireType != 2 {
  2022  				return fmt.Errorf("proto: wrong wireType = %d for field BlockPartSetHeader", wireType)
  2023  			}
  2024  			var msglen int
  2025  			for shift := uint(0); ; shift += 7 {
  2026  				if shift >= 64 {
  2027  					return ErrIntOverflowTypes
  2028  				}
  2029  				if iNdEx >= l {
  2030  					return io.ErrUnexpectedEOF
  2031  				}
  2032  				b := dAtA[iNdEx]
  2033  				iNdEx++
  2034  				msglen |= int(b&0x7F) << shift
  2035  				if b < 0x80 {
  2036  					break
  2037  				}
  2038  			}
  2039  			if msglen < 0 {
  2040  				return ErrInvalidLengthTypes
  2041  			}
  2042  			postIndex := iNdEx + msglen
  2043  			if postIndex < 0 {
  2044  				return ErrInvalidLengthTypes
  2045  			}
  2046  			if postIndex > l {
  2047  				return io.ErrUnexpectedEOF
  2048  			}
  2049  			if err := m.BlockPartSetHeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2050  				return err
  2051  			}
  2052  			iNdEx = postIndex
  2053  		case 4:
  2054  			if wireType != 2 {
  2055  				return fmt.Errorf("proto: wrong wireType = %d for field BlockParts", wireType)
  2056  			}
  2057  			var msglen int
  2058  			for shift := uint(0); ; shift += 7 {
  2059  				if shift >= 64 {
  2060  					return ErrIntOverflowTypes
  2061  				}
  2062  				if iNdEx >= l {
  2063  					return io.ErrUnexpectedEOF
  2064  				}
  2065  				b := dAtA[iNdEx]
  2066  				iNdEx++
  2067  				msglen |= int(b&0x7F) << shift
  2068  				if b < 0x80 {
  2069  					break
  2070  				}
  2071  			}
  2072  			if msglen < 0 {
  2073  				return ErrInvalidLengthTypes
  2074  			}
  2075  			postIndex := iNdEx + msglen
  2076  			if postIndex < 0 {
  2077  				return ErrInvalidLengthTypes
  2078  			}
  2079  			if postIndex > l {
  2080  				return io.ErrUnexpectedEOF
  2081  			}
  2082  			if m.BlockParts == nil {
  2083  				m.BlockParts = &bits.BitArray{}
  2084  			}
  2085  			if err := m.BlockParts.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2086  				return err
  2087  			}
  2088  			iNdEx = postIndex
  2089  		case 5:
  2090  			if wireType != 0 {
  2091  				return fmt.Errorf("proto: wrong wireType = %d for field IsCommit", wireType)
  2092  			}
  2093  			var v int
  2094  			for shift := uint(0); ; shift += 7 {
  2095  				if shift >= 64 {
  2096  					return ErrIntOverflowTypes
  2097  				}
  2098  				if iNdEx >= l {
  2099  					return io.ErrUnexpectedEOF
  2100  				}
  2101  				b := dAtA[iNdEx]
  2102  				iNdEx++
  2103  				v |= int(b&0x7F) << shift
  2104  				if b < 0x80 {
  2105  					break
  2106  				}
  2107  			}
  2108  			m.IsCommit = bool(v != 0)
  2109  		default:
  2110  			iNdEx = preIndex
  2111  			skippy, err := skipTypes(dAtA[iNdEx:])
  2112  			if err != nil {
  2113  				return err
  2114  			}
  2115  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2116  				return ErrInvalidLengthTypes
  2117  			}
  2118  			if (iNdEx + skippy) > l {
  2119  				return io.ErrUnexpectedEOF
  2120  			}
  2121  			iNdEx += skippy
  2122  		}
  2123  	}
  2124  
  2125  	if iNdEx > l {
  2126  		return io.ErrUnexpectedEOF
  2127  	}
  2128  	return nil
  2129  }
  2130  func (m *Proposal) Unmarshal(dAtA []byte) error {
  2131  	l := len(dAtA)
  2132  	iNdEx := 0
  2133  	for iNdEx < l {
  2134  		preIndex := iNdEx
  2135  		var wire uint64
  2136  		for shift := uint(0); ; shift += 7 {
  2137  			if shift >= 64 {
  2138  				return ErrIntOverflowTypes
  2139  			}
  2140  			if iNdEx >= l {
  2141  				return io.ErrUnexpectedEOF
  2142  			}
  2143  			b := dAtA[iNdEx]
  2144  			iNdEx++
  2145  			wire |= uint64(b&0x7F) << shift
  2146  			if b < 0x80 {
  2147  				break
  2148  			}
  2149  		}
  2150  		fieldNum := int32(wire >> 3)
  2151  		wireType := int(wire & 0x7)
  2152  		if wireType == 4 {
  2153  			return fmt.Errorf("proto: Proposal: wiretype end group for non-group")
  2154  		}
  2155  		if fieldNum <= 0 {
  2156  			return fmt.Errorf("proto: Proposal: illegal tag %d (wire type %d)", fieldNum, wire)
  2157  		}
  2158  		switch fieldNum {
  2159  		case 1:
  2160  			if wireType != 2 {
  2161  				return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType)
  2162  			}
  2163  			var msglen int
  2164  			for shift := uint(0); ; shift += 7 {
  2165  				if shift >= 64 {
  2166  					return ErrIntOverflowTypes
  2167  				}
  2168  				if iNdEx >= l {
  2169  					return io.ErrUnexpectedEOF
  2170  				}
  2171  				b := dAtA[iNdEx]
  2172  				iNdEx++
  2173  				msglen |= int(b&0x7F) << shift
  2174  				if b < 0x80 {
  2175  					break
  2176  				}
  2177  			}
  2178  			if msglen < 0 {
  2179  				return ErrInvalidLengthTypes
  2180  			}
  2181  			postIndex := iNdEx + msglen
  2182  			if postIndex < 0 {
  2183  				return ErrInvalidLengthTypes
  2184  			}
  2185  			if postIndex > l {
  2186  				return io.ErrUnexpectedEOF
  2187  			}
  2188  			if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2189  				return err
  2190  			}
  2191  			iNdEx = postIndex
  2192  		default:
  2193  			iNdEx = preIndex
  2194  			skippy, err := skipTypes(dAtA[iNdEx:])
  2195  			if err != nil {
  2196  				return err
  2197  			}
  2198  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2199  				return ErrInvalidLengthTypes
  2200  			}
  2201  			if (iNdEx + skippy) > l {
  2202  				return io.ErrUnexpectedEOF
  2203  			}
  2204  			iNdEx += skippy
  2205  		}
  2206  	}
  2207  
  2208  	if iNdEx > l {
  2209  		return io.ErrUnexpectedEOF
  2210  	}
  2211  	return nil
  2212  }
  2213  func (m *ProposalPOL) Unmarshal(dAtA []byte) error {
  2214  	l := len(dAtA)
  2215  	iNdEx := 0
  2216  	for iNdEx < l {
  2217  		preIndex := iNdEx
  2218  		var wire uint64
  2219  		for shift := uint(0); ; shift += 7 {
  2220  			if shift >= 64 {
  2221  				return ErrIntOverflowTypes
  2222  			}
  2223  			if iNdEx >= l {
  2224  				return io.ErrUnexpectedEOF
  2225  			}
  2226  			b := dAtA[iNdEx]
  2227  			iNdEx++
  2228  			wire |= uint64(b&0x7F) << shift
  2229  			if b < 0x80 {
  2230  				break
  2231  			}
  2232  		}
  2233  		fieldNum := int32(wire >> 3)
  2234  		wireType := int(wire & 0x7)
  2235  		if wireType == 4 {
  2236  			return fmt.Errorf("proto: ProposalPOL: wiretype end group for non-group")
  2237  		}
  2238  		if fieldNum <= 0 {
  2239  			return fmt.Errorf("proto: ProposalPOL: illegal tag %d (wire type %d)", fieldNum, wire)
  2240  		}
  2241  		switch fieldNum {
  2242  		case 1:
  2243  			if wireType != 0 {
  2244  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  2245  			}
  2246  			m.Height = 0
  2247  			for shift := uint(0); ; shift += 7 {
  2248  				if shift >= 64 {
  2249  					return ErrIntOverflowTypes
  2250  				}
  2251  				if iNdEx >= l {
  2252  					return io.ErrUnexpectedEOF
  2253  				}
  2254  				b := dAtA[iNdEx]
  2255  				iNdEx++
  2256  				m.Height |= int64(b&0x7F) << shift
  2257  				if b < 0x80 {
  2258  					break
  2259  				}
  2260  			}
  2261  		case 2:
  2262  			if wireType != 0 {
  2263  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalPolRound", wireType)
  2264  			}
  2265  			m.ProposalPolRound = 0
  2266  			for shift := uint(0); ; shift += 7 {
  2267  				if shift >= 64 {
  2268  					return ErrIntOverflowTypes
  2269  				}
  2270  				if iNdEx >= l {
  2271  					return io.ErrUnexpectedEOF
  2272  				}
  2273  				b := dAtA[iNdEx]
  2274  				iNdEx++
  2275  				m.ProposalPolRound |= int32(b&0x7F) << shift
  2276  				if b < 0x80 {
  2277  					break
  2278  				}
  2279  			}
  2280  		case 3:
  2281  			if wireType != 2 {
  2282  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalPol", wireType)
  2283  			}
  2284  			var msglen int
  2285  			for shift := uint(0); ; shift += 7 {
  2286  				if shift >= 64 {
  2287  					return ErrIntOverflowTypes
  2288  				}
  2289  				if iNdEx >= l {
  2290  					return io.ErrUnexpectedEOF
  2291  				}
  2292  				b := dAtA[iNdEx]
  2293  				iNdEx++
  2294  				msglen |= int(b&0x7F) << shift
  2295  				if b < 0x80 {
  2296  					break
  2297  				}
  2298  			}
  2299  			if msglen < 0 {
  2300  				return ErrInvalidLengthTypes
  2301  			}
  2302  			postIndex := iNdEx + msglen
  2303  			if postIndex < 0 {
  2304  				return ErrInvalidLengthTypes
  2305  			}
  2306  			if postIndex > l {
  2307  				return io.ErrUnexpectedEOF
  2308  			}
  2309  			if err := m.ProposalPol.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2310  				return err
  2311  			}
  2312  			iNdEx = postIndex
  2313  		default:
  2314  			iNdEx = preIndex
  2315  			skippy, err := skipTypes(dAtA[iNdEx:])
  2316  			if err != nil {
  2317  				return err
  2318  			}
  2319  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2320  				return ErrInvalidLengthTypes
  2321  			}
  2322  			if (iNdEx + skippy) > l {
  2323  				return io.ErrUnexpectedEOF
  2324  			}
  2325  			iNdEx += skippy
  2326  		}
  2327  	}
  2328  
  2329  	if iNdEx > l {
  2330  		return io.ErrUnexpectedEOF
  2331  	}
  2332  	return nil
  2333  }
  2334  func (m *BlockPart) Unmarshal(dAtA []byte) error {
  2335  	l := len(dAtA)
  2336  	iNdEx := 0
  2337  	for iNdEx < l {
  2338  		preIndex := iNdEx
  2339  		var wire uint64
  2340  		for shift := uint(0); ; shift += 7 {
  2341  			if shift >= 64 {
  2342  				return ErrIntOverflowTypes
  2343  			}
  2344  			if iNdEx >= l {
  2345  				return io.ErrUnexpectedEOF
  2346  			}
  2347  			b := dAtA[iNdEx]
  2348  			iNdEx++
  2349  			wire |= uint64(b&0x7F) << shift
  2350  			if b < 0x80 {
  2351  				break
  2352  			}
  2353  		}
  2354  		fieldNum := int32(wire >> 3)
  2355  		wireType := int(wire & 0x7)
  2356  		if wireType == 4 {
  2357  			return fmt.Errorf("proto: BlockPart: wiretype end group for non-group")
  2358  		}
  2359  		if fieldNum <= 0 {
  2360  			return fmt.Errorf("proto: BlockPart: illegal tag %d (wire type %d)", fieldNum, wire)
  2361  		}
  2362  		switch fieldNum {
  2363  		case 1:
  2364  			if wireType != 0 {
  2365  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  2366  			}
  2367  			m.Height = 0
  2368  			for shift := uint(0); ; shift += 7 {
  2369  				if shift >= 64 {
  2370  					return ErrIntOverflowTypes
  2371  				}
  2372  				if iNdEx >= l {
  2373  					return io.ErrUnexpectedEOF
  2374  				}
  2375  				b := dAtA[iNdEx]
  2376  				iNdEx++
  2377  				m.Height |= int64(b&0x7F) << shift
  2378  				if b < 0x80 {
  2379  					break
  2380  				}
  2381  			}
  2382  		case 2:
  2383  			if wireType != 0 {
  2384  				return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType)
  2385  			}
  2386  			m.Round = 0
  2387  			for shift := uint(0); ; shift += 7 {
  2388  				if shift >= 64 {
  2389  					return ErrIntOverflowTypes
  2390  				}
  2391  				if iNdEx >= l {
  2392  					return io.ErrUnexpectedEOF
  2393  				}
  2394  				b := dAtA[iNdEx]
  2395  				iNdEx++
  2396  				m.Round |= int32(b&0x7F) << shift
  2397  				if b < 0x80 {
  2398  					break
  2399  				}
  2400  			}
  2401  		case 3:
  2402  			if wireType != 2 {
  2403  				return fmt.Errorf("proto: wrong wireType = %d for field Part", wireType)
  2404  			}
  2405  			var msglen int
  2406  			for shift := uint(0); ; shift += 7 {
  2407  				if shift >= 64 {
  2408  					return ErrIntOverflowTypes
  2409  				}
  2410  				if iNdEx >= l {
  2411  					return io.ErrUnexpectedEOF
  2412  				}
  2413  				b := dAtA[iNdEx]
  2414  				iNdEx++
  2415  				msglen |= int(b&0x7F) << shift
  2416  				if b < 0x80 {
  2417  					break
  2418  				}
  2419  			}
  2420  			if msglen < 0 {
  2421  				return ErrInvalidLengthTypes
  2422  			}
  2423  			postIndex := iNdEx + msglen
  2424  			if postIndex < 0 {
  2425  				return ErrInvalidLengthTypes
  2426  			}
  2427  			if postIndex > l {
  2428  				return io.ErrUnexpectedEOF
  2429  			}
  2430  			if err := m.Part.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2431  				return err
  2432  			}
  2433  			iNdEx = postIndex
  2434  		default:
  2435  			iNdEx = preIndex
  2436  			skippy, err := skipTypes(dAtA[iNdEx:])
  2437  			if err != nil {
  2438  				return err
  2439  			}
  2440  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2441  				return ErrInvalidLengthTypes
  2442  			}
  2443  			if (iNdEx + skippy) > l {
  2444  				return io.ErrUnexpectedEOF
  2445  			}
  2446  			iNdEx += skippy
  2447  		}
  2448  	}
  2449  
  2450  	if iNdEx > l {
  2451  		return io.ErrUnexpectedEOF
  2452  	}
  2453  	return nil
  2454  }
  2455  func (m *Vote) Unmarshal(dAtA []byte) error {
  2456  	l := len(dAtA)
  2457  	iNdEx := 0
  2458  	for iNdEx < l {
  2459  		preIndex := iNdEx
  2460  		var wire uint64
  2461  		for shift := uint(0); ; shift += 7 {
  2462  			if shift >= 64 {
  2463  				return ErrIntOverflowTypes
  2464  			}
  2465  			if iNdEx >= l {
  2466  				return io.ErrUnexpectedEOF
  2467  			}
  2468  			b := dAtA[iNdEx]
  2469  			iNdEx++
  2470  			wire |= uint64(b&0x7F) << shift
  2471  			if b < 0x80 {
  2472  				break
  2473  			}
  2474  		}
  2475  		fieldNum := int32(wire >> 3)
  2476  		wireType := int(wire & 0x7)
  2477  		if wireType == 4 {
  2478  			return fmt.Errorf("proto: Vote: wiretype end group for non-group")
  2479  		}
  2480  		if fieldNum <= 0 {
  2481  			return fmt.Errorf("proto: Vote: illegal tag %d (wire type %d)", fieldNum, wire)
  2482  		}
  2483  		switch fieldNum {
  2484  		case 1:
  2485  			if wireType != 2 {
  2486  				return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType)
  2487  			}
  2488  			var msglen int
  2489  			for shift := uint(0); ; shift += 7 {
  2490  				if shift >= 64 {
  2491  					return ErrIntOverflowTypes
  2492  				}
  2493  				if iNdEx >= l {
  2494  					return io.ErrUnexpectedEOF
  2495  				}
  2496  				b := dAtA[iNdEx]
  2497  				iNdEx++
  2498  				msglen |= int(b&0x7F) << shift
  2499  				if b < 0x80 {
  2500  					break
  2501  				}
  2502  			}
  2503  			if msglen < 0 {
  2504  				return ErrInvalidLengthTypes
  2505  			}
  2506  			postIndex := iNdEx + msglen
  2507  			if postIndex < 0 {
  2508  				return ErrInvalidLengthTypes
  2509  			}
  2510  			if postIndex > l {
  2511  				return io.ErrUnexpectedEOF
  2512  			}
  2513  			if m.Vote == nil {
  2514  				m.Vote = &types.Vote{}
  2515  			}
  2516  			if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2517  				return err
  2518  			}
  2519  			iNdEx = postIndex
  2520  		default:
  2521  			iNdEx = preIndex
  2522  			skippy, err := skipTypes(dAtA[iNdEx:])
  2523  			if err != nil {
  2524  				return err
  2525  			}
  2526  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2527  				return ErrInvalidLengthTypes
  2528  			}
  2529  			if (iNdEx + skippy) > l {
  2530  				return io.ErrUnexpectedEOF
  2531  			}
  2532  			iNdEx += skippy
  2533  		}
  2534  	}
  2535  
  2536  	if iNdEx > l {
  2537  		return io.ErrUnexpectedEOF
  2538  	}
  2539  	return nil
  2540  }
  2541  func (m *HasVote) Unmarshal(dAtA []byte) error {
  2542  	l := len(dAtA)
  2543  	iNdEx := 0
  2544  	for iNdEx < l {
  2545  		preIndex := iNdEx
  2546  		var wire uint64
  2547  		for shift := uint(0); ; shift += 7 {
  2548  			if shift >= 64 {
  2549  				return ErrIntOverflowTypes
  2550  			}
  2551  			if iNdEx >= l {
  2552  				return io.ErrUnexpectedEOF
  2553  			}
  2554  			b := dAtA[iNdEx]
  2555  			iNdEx++
  2556  			wire |= uint64(b&0x7F) << shift
  2557  			if b < 0x80 {
  2558  				break
  2559  			}
  2560  		}
  2561  		fieldNum := int32(wire >> 3)
  2562  		wireType := int(wire & 0x7)
  2563  		if wireType == 4 {
  2564  			return fmt.Errorf("proto: HasVote: wiretype end group for non-group")
  2565  		}
  2566  		if fieldNum <= 0 {
  2567  			return fmt.Errorf("proto: HasVote: illegal tag %d (wire type %d)", fieldNum, wire)
  2568  		}
  2569  		switch fieldNum {
  2570  		case 1:
  2571  			if wireType != 0 {
  2572  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  2573  			}
  2574  			m.Height = 0
  2575  			for shift := uint(0); ; shift += 7 {
  2576  				if shift >= 64 {
  2577  					return ErrIntOverflowTypes
  2578  				}
  2579  				if iNdEx >= l {
  2580  					return io.ErrUnexpectedEOF
  2581  				}
  2582  				b := dAtA[iNdEx]
  2583  				iNdEx++
  2584  				m.Height |= int64(b&0x7F) << shift
  2585  				if b < 0x80 {
  2586  					break
  2587  				}
  2588  			}
  2589  		case 2:
  2590  			if wireType != 0 {
  2591  				return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType)
  2592  			}
  2593  			m.Round = 0
  2594  			for shift := uint(0); ; shift += 7 {
  2595  				if shift >= 64 {
  2596  					return ErrIntOverflowTypes
  2597  				}
  2598  				if iNdEx >= l {
  2599  					return io.ErrUnexpectedEOF
  2600  				}
  2601  				b := dAtA[iNdEx]
  2602  				iNdEx++
  2603  				m.Round |= int32(b&0x7F) << shift
  2604  				if b < 0x80 {
  2605  					break
  2606  				}
  2607  			}
  2608  		case 3:
  2609  			if wireType != 0 {
  2610  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2611  			}
  2612  			m.Type = 0
  2613  			for shift := uint(0); ; shift += 7 {
  2614  				if shift >= 64 {
  2615  					return ErrIntOverflowTypes
  2616  				}
  2617  				if iNdEx >= l {
  2618  					return io.ErrUnexpectedEOF
  2619  				}
  2620  				b := dAtA[iNdEx]
  2621  				iNdEx++
  2622  				m.Type |= types.SignedMsgType(b&0x7F) << shift
  2623  				if b < 0x80 {
  2624  					break
  2625  				}
  2626  			}
  2627  		case 4:
  2628  			if wireType != 0 {
  2629  				return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
  2630  			}
  2631  			m.Index = 0
  2632  			for shift := uint(0); ; shift += 7 {
  2633  				if shift >= 64 {
  2634  					return ErrIntOverflowTypes
  2635  				}
  2636  				if iNdEx >= l {
  2637  					return io.ErrUnexpectedEOF
  2638  				}
  2639  				b := dAtA[iNdEx]
  2640  				iNdEx++
  2641  				m.Index |= int32(b&0x7F) << shift
  2642  				if b < 0x80 {
  2643  					break
  2644  				}
  2645  			}
  2646  		default:
  2647  			iNdEx = preIndex
  2648  			skippy, err := skipTypes(dAtA[iNdEx:])
  2649  			if err != nil {
  2650  				return err
  2651  			}
  2652  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2653  				return ErrInvalidLengthTypes
  2654  			}
  2655  			if (iNdEx + skippy) > l {
  2656  				return io.ErrUnexpectedEOF
  2657  			}
  2658  			iNdEx += skippy
  2659  		}
  2660  	}
  2661  
  2662  	if iNdEx > l {
  2663  		return io.ErrUnexpectedEOF
  2664  	}
  2665  	return nil
  2666  }
  2667  func (m *VoteSetMaj23) Unmarshal(dAtA []byte) error {
  2668  	l := len(dAtA)
  2669  	iNdEx := 0
  2670  	for iNdEx < l {
  2671  		preIndex := iNdEx
  2672  		var wire uint64
  2673  		for shift := uint(0); ; shift += 7 {
  2674  			if shift >= 64 {
  2675  				return ErrIntOverflowTypes
  2676  			}
  2677  			if iNdEx >= l {
  2678  				return io.ErrUnexpectedEOF
  2679  			}
  2680  			b := dAtA[iNdEx]
  2681  			iNdEx++
  2682  			wire |= uint64(b&0x7F) << shift
  2683  			if b < 0x80 {
  2684  				break
  2685  			}
  2686  		}
  2687  		fieldNum := int32(wire >> 3)
  2688  		wireType := int(wire & 0x7)
  2689  		if wireType == 4 {
  2690  			return fmt.Errorf("proto: VoteSetMaj23: wiretype end group for non-group")
  2691  		}
  2692  		if fieldNum <= 0 {
  2693  			return fmt.Errorf("proto: VoteSetMaj23: illegal tag %d (wire type %d)", fieldNum, wire)
  2694  		}
  2695  		switch fieldNum {
  2696  		case 1:
  2697  			if wireType != 0 {
  2698  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  2699  			}
  2700  			m.Height = 0
  2701  			for shift := uint(0); ; shift += 7 {
  2702  				if shift >= 64 {
  2703  					return ErrIntOverflowTypes
  2704  				}
  2705  				if iNdEx >= l {
  2706  					return io.ErrUnexpectedEOF
  2707  				}
  2708  				b := dAtA[iNdEx]
  2709  				iNdEx++
  2710  				m.Height |= int64(b&0x7F) << shift
  2711  				if b < 0x80 {
  2712  					break
  2713  				}
  2714  			}
  2715  		case 2:
  2716  			if wireType != 0 {
  2717  				return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType)
  2718  			}
  2719  			m.Round = 0
  2720  			for shift := uint(0); ; shift += 7 {
  2721  				if shift >= 64 {
  2722  					return ErrIntOverflowTypes
  2723  				}
  2724  				if iNdEx >= l {
  2725  					return io.ErrUnexpectedEOF
  2726  				}
  2727  				b := dAtA[iNdEx]
  2728  				iNdEx++
  2729  				m.Round |= int32(b&0x7F) << shift
  2730  				if b < 0x80 {
  2731  					break
  2732  				}
  2733  			}
  2734  		case 3:
  2735  			if wireType != 0 {
  2736  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2737  			}
  2738  			m.Type = 0
  2739  			for shift := uint(0); ; shift += 7 {
  2740  				if shift >= 64 {
  2741  					return ErrIntOverflowTypes
  2742  				}
  2743  				if iNdEx >= l {
  2744  					return io.ErrUnexpectedEOF
  2745  				}
  2746  				b := dAtA[iNdEx]
  2747  				iNdEx++
  2748  				m.Type |= types.SignedMsgType(b&0x7F) << shift
  2749  				if b < 0x80 {
  2750  					break
  2751  				}
  2752  			}
  2753  		case 4:
  2754  			if wireType != 2 {
  2755  				return fmt.Errorf("proto: wrong wireType = %d for field BlockID", wireType)
  2756  			}
  2757  			var msglen int
  2758  			for shift := uint(0); ; shift += 7 {
  2759  				if shift >= 64 {
  2760  					return ErrIntOverflowTypes
  2761  				}
  2762  				if iNdEx >= l {
  2763  					return io.ErrUnexpectedEOF
  2764  				}
  2765  				b := dAtA[iNdEx]
  2766  				iNdEx++
  2767  				msglen |= int(b&0x7F) << shift
  2768  				if b < 0x80 {
  2769  					break
  2770  				}
  2771  			}
  2772  			if msglen < 0 {
  2773  				return ErrInvalidLengthTypes
  2774  			}
  2775  			postIndex := iNdEx + msglen
  2776  			if postIndex < 0 {
  2777  				return ErrInvalidLengthTypes
  2778  			}
  2779  			if postIndex > l {
  2780  				return io.ErrUnexpectedEOF
  2781  			}
  2782  			if err := m.BlockID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2783  				return err
  2784  			}
  2785  			iNdEx = postIndex
  2786  		default:
  2787  			iNdEx = preIndex
  2788  			skippy, err := skipTypes(dAtA[iNdEx:])
  2789  			if err != nil {
  2790  				return err
  2791  			}
  2792  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2793  				return ErrInvalidLengthTypes
  2794  			}
  2795  			if (iNdEx + skippy) > l {
  2796  				return io.ErrUnexpectedEOF
  2797  			}
  2798  			iNdEx += skippy
  2799  		}
  2800  	}
  2801  
  2802  	if iNdEx > l {
  2803  		return io.ErrUnexpectedEOF
  2804  	}
  2805  	return nil
  2806  }
  2807  func (m *VoteSetBits) Unmarshal(dAtA []byte) error {
  2808  	l := len(dAtA)
  2809  	iNdEx := 0
  2810  	for iNdEx < l {
  2811  		preIndex := iNdEx
  2812  		var wire uint64
  2813  		for shift := uint(0); ; shift += 7 {
  2814  			if shift >= 64 {
  2815  				return ErrIntOverflowTypes
  2816  			}
  2817  			if iNdEx >= l {
  2818  				return io.ErrUnexpectedEOF
  2819  			}
  2820  			b := dAtA[iNdEx]
  2821  			iNdEx++
  2822  			wire |= uint64(b&0x7F) << shift
  2823  			if b < 0x80 {
  2824  				break
  2825  			}
  2826  		}
  2827  		fieldNum := int32(wire >> 3)
  2828  		wireType := int(wire & 0x7)
  2829  		if wireType == 4 {
  2830  			return fmt.Errorf("proto: VoteSetBits: wiretype end group for non-group")
  2831  		}
  2832  		if fieldNum <= 0 {
  2833  			return fmt.Errorf("proto: VoteSetBits: illegal tag %d (wire type %d)", fieldNum, wire)
  2834  		}
  2835  		switch fieldNum {
  2836  		case 1:
  2837  			if wireType != 0 {
  2838  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  2839  			}
  2840  			m.Height = 0
  2841  			for shift := uint(0); ; shift += 7 {
  2842  				if shift >= 64 {
  2843  					return ErrIntOverflowTypes
  2844  				}
  2845  				if iNdEx >= l {
  2846  					return io.ErrUnexpectedEOF
  2847  				}
  2848  				b := dAtA[iNdEx]
  2849  				iNdEx++
  2850  				m.Height |= int64(b&0x7F) << shift
  2851  				if b < 0x80 {
  2852  					break
  2853  				}
  2854  			}
  2855  		case 2:
  2856  			if wireType != 0 {
  2857  				return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType)
  2858  			}
  2859  			m.Round = 0
  2860  			for shift := uint(0); ; shift += 7 {
  2861  				if shift >= 64 {
  2862  					return ErrIntOverflowTypes
  2863  				}
  2864  				if iNdEx >= l {
  2865  					return io.ErrUnexpectedEOF
  2866  				}
  2867  				b := dAtA[iNdEx]
  2868  				iNdEx++
  2869  				m.Round |= int32(b&0x7F) << shift
  2870  				if b < 0x80 {
  2871  					break
  2872  				}
  2873  			}
  2874  		case 3:
  2875  			if wireType != 0 {
  2876  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2877  			}
  2878  			m.Type = 0
  2879  			for shift := uint(0); ; shift += 7 {
  2880  				if shift >= 64 {
  2881  					return ErrIntOverflowTypes
  2882  				}
  2883  				if iNdEx >= l {
  2884  					return io.ErrUnexpectedEOF
  2885  				}
  2886  				b := dAtA[iNdEx]
  2887  				iNdEx++
  2888  				m.Type |= types.SignedMsgType(b&0x7F) << shift
  2889  				if b < 0x80 {
  2890  					break
  2891  				}
  2892  			}
  2893  		case 4:
  2894  			if wireType != 2 {
  2895  				return fmt.Errorf("proto: wrong wireType = %d for field BlockID", wireType)
  2896  			}
  2897  			var msglen int
  2898  			for shift := uint(0); ; shift += 7 {
  2899  				if shift >= 64 {
  2900  					return ErrIntOverflowTypes
  2901  				}
  2902  				if iNdEx >= l {
  2903  					return io.ErrUnexpectedEOF
  2904  				}
  2905  				b := dAtA[iNdEx]
  2906  				iNdEx++
  2907  				msglen |= int(b&0x7F) << shift
  2908  				if b < 0x80 {
  2909  					break
  2910  				}
  2911  			}
  2912  			if msglen < 0 {
  2913  				return ErrInvalidLengthTypes
  2914  			}
  2915  			postIndex := iNdEx + msglen
  2916  			if postIndex < 0 {
  2917  				return ErrInvalidLengthTypes
  2918  			}
  2919  			if postIndex > l {
  2920  				return io.ErrUnexpectedEOF
  2921  			}
  2922  			if err := m.BlockID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2923  				return err
  2924  			}
  2925  			iNdEx = postIndex
  2926  		case 5:
  2927  			if wireType != 2 {
  2928  				return fmt.Errorf("proto: wrong wireType = %d for field Votes", wireType)
  2929  			}
  2930  			var msglen int
  2931  			for shift := uint(0); ; shift += 7 {
  2932  				if shift >= 64 {
  2933  					return ErrIntOverflowTypes
  2934  				}
  2935  				if iNdEx >= l {
  2936  					return io.ErrUnexpectedEOF
  2937  				}
  2938  				b := dAtA[iNdEx]
  2939  				iNdEx++
  2940  				msglen |= int(b&0x7F) << shift
  2941  				if b < 0x80 {
  2942  					break
  2943  				}
  2944  			}
  2945  			if msglen < 0 {
  2946  				return ErrInvalidLengthTypes
  2947  			}
  2948  			postIndex := iNdEx + msglen
  2949  			if postIndex < 0 {
  2950  				return ErrInvalidLengthTypes
  2951  			}
  2952  			if postIndex > l {
  2953  				return io.ErrUnexpectedEOF
  2954  			}
  2955  			if err := m.Votes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2956  				return err
  2957  			}
  2958  			iNdEx = postIndex
  2959  		default:
  2960  			iNdEx = preIndex
  2961  			skippy, err := skipTypes(dAtA[iNdEx:])
  2962  			if err != nil {
  2963  				return err
  2964  			}
  2965  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2966  				return ErrInvalidLengthTypes
  2967  			}
  2968  			if (iNdEx + skippy) > l {
  2969  				return io.ErrUnexpectedEOF
  2970  			}
  2971  			iNdEx += skippy
  2972  		}
  2973  	}
  2974  
  2975  	if iNdEx > l {
  2976  		return io.ErrUnexpectedEOF
  2977  	}
  2978  	return nil
  2979  }
  2980  func (m *Message) Unmarshal(dAtA []byte) error {
  2981  	l := len(dAtA)
  2982  	iNdEx := 0
  2983  	for iNdEx < l {
  2984  		preIndex := iNdEx
  2985  		var wire uint64
  2986  		for shift := uint(0); ; shift += 7 {
  2987  			if shift >= 64 {
  2988  				return ErrIntOverflowTypes
  2989  			}
  2990  			if iNdEx >= l {
  2991  				return io.ErrUnexpectedEOF
  2992  			}
  2993  			b := dAtA[iNdEx]
  2994  			iNdEx++
  2995  			wire |= uint64(b&0x7F) << shift
  2996  			if b < 0x80 {
  2997  				break
  2998  			}
  2999  		}
  3000  		fieldNum := int32(wire >> 3)
  3001  		wireType := int(wire & 0x7)
  3002  		if wireType == 4 {
  3003  			return fmt.Errorf("proto: Message: wiretype end group for non-group")
  3004  		}
  3005  		if fieldNum <= 0 {
  3006  			return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
  3007  		}
  3008  		switch fieldNum {
  3009  		case 1:
  3010  			if wireType != 2 {
  3011  				return fmt.Errorf("proto: wrong wireType = %d for field NewRoundStep", wireType)
  3012  			}
  3013  			var msglen int
  3014  			for shift := uint(0); ; shift += 7 {
  3015  				if shift >= 64 {
  3016  					return ErrIntOverflowTypes
  3017  				}
  3018  				if iNdEx >= l {
  3019  					return io.ErrUnexpectedEOF
  3020  				}
  3021  				b := dAtA[iNdEx]
  3022  				iNdEx++
  3023  				msglen |= int(b&0x7F) << shift
  3024  				if b < 0x80 {
  3025  					break
  3026  				}
  3027  			}
  3028  			if msglen < 0 {
  3029  				return ErrInvalidLengthTypes
  3030  			}
  3031  			postIndex := iNdEx + msglen
  3032  			if postIndex < 0 {
  3033  				return ErrInvalidLengthTypes
  3034  			}
  3035  			if postIndex > l {
  3036  				return io.ErrUnexpectedEOF
  3037  			}
  3038  			v := &NewRoundStep{}
  3039  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3040  				return err
  3041  			}
  3042  			m.Sum = &Message_NewRoundStep{v}
  3043  			iNdEx = postIndex
  3044  		case 2:
  3045  			if wireType != 2 {
  3046  				return fmt.Errorf("proto: wrong wireType = %d for field NewValidBlock", wireType)
  3047  			}
  3048  			var msglen int
  3049  			for shift := uint(0); ; shift += 7 {
  3050  				if shift >= 64 {
  3051  					return ErrIntOverflowTypes
  3052  				}
  3053  				if iNdEx >= l {
  3054  					return io.ErrUnexpectedEOF
  3055  				}
  3056  				b := dAtA[iNdEx]
  3057  				iNdEx++
  3058  				msglen |= int(b&0x7F) << shift
  3059  				if b < 0x80 {
  3060  					break
  3061  				}
  3062  			}
  3063  			if msglen < 0 {
  3064  				return ErrInvalidLengthTypes
  3065  			}
  3066  			postIndex := iNdEx + msglen
  3067  			if postIndex < 0 {
  3068  				return ErrInvalidLengthTypes
  3069  			}
  3070  			if postIndex > l {
  3071  				return io.ErrUnexpectedEOF
  3072  			}
  3073  			v := &NewValidBlock{}
  3074  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3075  				return err
  3076  			}
  3077  			m.Sum = &Message_NewValidBlock{v}
  3078  			iNdEx = postIndex
  3079  		case 3:
  3080  			if wireType != 2 {
  3081  				return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType)
  3082  			}
  3083  			var msglen int
  3084  			for shift := uint(0); ; shift += 7 {
  3085  				if shift >= 64 {
  3086  					return ErrIntOverflowTypes
  3087  				}
  3088  				if iNdEx >= l {
  3089  					return io.ErrUnexpectedEOF
  3090  				}
  3091  				b := dAtA[iNdEx]
  3092  				iNdEx++
  3093  				msglen |= int(b&0x7F) << shift
  3094  				if b < 0x80 {
  3095  					break
  3096  				}
  3097  			}
  3098  			if msglen < 0 {
  3099  				return ErrInvalidLengthTypes
  3100  			}
  3101  			postIndex := iNdEx + msglen
  3102  			if postIndex < 0 {
  3103  				return ErrInvalidLengthTypes
  3104  			}
  3105  			if postIndex > l {
  3106  				return io.ErrUnexpectedEOF
  3107  			}
  3108  			v := &Proposal{}
  3109  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3110  				return err
  3111  			}
  3112  			m.Sum = &Message_Proposal{v}
  3113  			iNdEx = postIndex
  3114  		case 4:
  3115  			if wireType != 2 {
  3116  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalPol", wireType)
  3117  			}
  3118  			var msglen int
  3119  			for shift := uint(0); ; shift += 7 {
  3120  				if shift >= 64 {
  3121  					return ErrIntOverflowTypes
  3122  				}
  3123  				if iNdEx >= l {
  3124  					return io.ErrUnexpectedEOF
  3125  				}
  3126  				b := dAtA[iNdEx]
  3127  				iNdEx++
  3128  				msglen |= int(b&0x7F) << shift
  3129  				if b < 0x80 {
  3130  					break
  3131  				}
  3132  			}
  3133  			if msglen < 0 {
  3134  				return ErrInvalidLengthTypes
  3135  			}
  3136  			postIndex := iNdEx + msglen
  3137  			if postIndex < 0 {
  3138  				return ErrInvalidLengthTypes
  3139  			}
  3140  			if postIndex > l {
  3141  				return io.ErrUnexpectedEOF
  3142  			}
  3143  			v := &ProposalPOL{}
  3144  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3145  				return err
  3146  			}
  3147  			m.Sum = &Message_ProposalPol{v}
  3148  			iNdEx = postIndex
  3149  		case 5:
  3150  			if wireType != 2 {
  3151  				return fmt.Errorf("proto: wrong wireType = %d for field BlockPart", wireType)
  3152  			}
  3153  			var msglen int
  3154  			for shift := uint(0); ; shift += 7 {
  3155  				if shift >= 64 {
  3156  					return ErrIntOverflowTypes
  3157  				}
  3158  				if iNdEx >= l {
  3159  					return io.ErrUnexpectedEOF
  3160  				}
  3161  				b := dAtA[iNdEx]
  3162  				iNdEx++
  3163  				msglen |= int(b&0x7F) << shift
  3164  				if b < 0x80 {
  3165  					break
  3166  				}
  3167  			}
  3168  			if msglen < 0 {
  3169  				return ErrInvalidLengthTypes
  3170  			}
  3171  			postIndex := iNdEx + msglen
  3172  			if postIndex < 0 {
  3173  				return ErrInvalidLengthTypes
  3174  			}
  3175  			if postIndex > l {
  3176  				return io.ErrUnexpectedEOF
  3177  			}
  3178  			v := &BlockPart{}
  3179  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3180  				return err
  3181  			}
  3182  			m.Sum = &Message_BlockPart{v}
  3183  			iNdEx = postIndex
  3184  		case 6:
  3185  			if wireType != 2 {
  3186  				return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType)
  3187  			}
  3188  			var msglen int
  3189  			for shift := uint(0); ; shift += 7 {
  3190  				if shift >= 64 {
  3191  					return ErrIntOverflowTypes
  3192  				}
  3193  				if iNdEx >= l {
  3194  					return io.ErrUnexpectedEOF
  3195  				}
  3196  				b := dAtA[iNdEx]
  3197  				iNdEx++
  3198  				msglen |= int(b&0x7F) << shift
  3199  				if b < 0x80 {
  3200  					break
  3201  				}
  3202  			}
  3203  			if msglen < 0 {
  3204  				return ErrInvalidLengthTypes
  3205  			}
  3206  			postIndex := iNdEx + msglen
  3207  			if postIndex < 0 {
  3208  				return ErrInvalidLengthTypes
  3209  			}
  3210  			if postIndex > l {
  3211  				return io.ErrUnexpectedEOF
  3212  			}
  3213  			v := &Vote{}
  3214  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3215  				return err
  3216  			}
  3217  			m.Sum = &Message_Vote{v}
  3218  			iNdEx = postIndex
  3219  		case 7:
  3220  			if wireType != 2 {
  3221  				return fmt.Errorf("proto: wrong wireType = %d for field HasVote", wireType)
  3222  			}
  3223  			var msglen int
  3224  			for shift := uint(0); ; shift += 7 {
  3225  				if shift >= 64 {
  3226  					return ErrIntOverflowTypes
  3227  				}
  3228  				if iNdEx >= l {
  3229  					return io.ErrUnexpectedEOF
  3230  				}
  3231  				b := dAtA[iNdEx]
  3232  				iNdEx++
  3233  				msglen |= int(b&0x7F) << shift
  3234  				if b < 0x80 {
  3235  					break
  3236  				}
  3237  			}
  3238  			if msglen < 0 {
  3239  				return ErrInvalidLengthTypes
  3240  			}
  3241  			postIndex := iNdEx + msglen
  3242  			if postIndex < 0 {
  3243  				return ErrInvalidLengthTypes
  3244  			}
  3245  			if postIndex > l {
  3246  				return io.ErrUnexpectedEOF
  3247  			}
  3248  			v := &HasVote{}
  3249  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3250  				return err
  3251  			}
  3252  			m.Sum = &Message_HasVote{v}
  3253  			iNdEx = postIndex
  3254  		case 8:
  3255  			if wireType != 2 {
  3256  				return fmt.Errorf("proto: wrong wireType = %d for field VoteSetMaj23", wireType)
  3257  			}
  3258  			var msglen int
  3259  			for shift := uint(0); ; shift += 7 {
  3260  				if shift >= 64 {
  3261  					return ErrIntOverflowTypes
  3262  				}
  3263  				if iNdEx >= l {
  3264  					return io.ErrUnexpectedEOF
  3265  				}
  3266  				b := dAtA[iNdEx]
  3267  				iNdEx++
  3268  				msglen |= int(b&0x7F) << shift
  3269  				if b < 0x80 {
  3270  					break
  3271  				}
  3272  			}
  3273  			if msglen < 0 {
  3274  				return ErrInvalidLengthTypes
  3275  			}
  3276  			postIndex := iNdEx + msglen
  3277  			if postIndex < 0 {
  3278  				return ErrInvalidLengthTypes
  3279  			}
  3280  			if postIndex > l {
  3281  				return io.ErrUnexpectedEOF
  3282  			}
  3283  			v := &VoteSetMaj23{}
  3284  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3285  				return err
  3286  			}
  3287  			m.Sum = &Message_VoteSetMaj23{v}
  3288  			iNdEx = postIndex
  3289  		case 9:
  3290  			if wireType != 2 {
  3291  				return fmt.Errorf("proto: wrong wireType = %d for field VoteSetBits", wireType)
  3292  			}
  3293  			var msglen int
  3294  			for shift := uint(0); ; shift += 7 {
  3295  				if shift >= 64 {
  3296  					return ErrIntOverflowTypes
  3297  				}
  3298  				if iNdEx >= l {
  3299  					return io.ErrUnexpectedEOF
  3300  				}
  3301  				b := dAtA[iNdEx]
  3302  				iNdEx++
  3303  				msglen |= int(b&0x7F) << shift
  3304  				if b < 0x80 {
  3305  					break
  3306  				}
  3307  			}
  3308  			if msglen < 0 {
  3309  				return ErrInvalidLengthTypes
  3310  			}
  3311  			postIndex := iNdEx + msglen
  3312  			if postIndex < 0 {
  3313  				return ErrInvalidLengthTypes
  3314  			}
  3315  			if postIndex > l {
  3316  				return io.ErrUnexpectedEOF
  3317  			}
  3318  			v := &VoteSetBits{}
  3319  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3320  				return err
  3321  			}
  3322  			m.Sum = &Message_VoteSetBits{v}
  3323  			iNdEx = postIndex
  3324  		default:
  3325  			iNdEx = preIndex
  3326  			skippy, err := skipTypes(dAtA[iNdEx:])
  3327  			if err != nil {
  3328  				return err
  3329  			}
  3330  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3331  				return ErrInvalidLengthTypes
  3332  			}
  3333  			if (iNdEx + skippy) > l {
  3334  				return io.ErrUnexpectedEOF
  3335  			}
  3336  			iNdEx += skippy
  3337  		}
  3338  	}
  3339  
  3340  	if iNdEx > l {
  3341  		return io.ErrUnexpectedEOF
  3342  	}
  3343  	return nil
  3344  }
  3345  func skipTypes(dAtA []byte) (n int, err error) {
  3346  	l := len(dAtA)
  3347  	iNdEx := 0
  3348  	depth := 0
  3349  	for iNdEx < l {
  3350  		var wire uint64
  3351  		for shift := uint(0); ; shift += 7 {
  3352  			if shift >= 64 {
  3353  				return 0, ErrIntOverflowTypes
  3354  			}
  3355  			if iNdEx >= l {
  3356  				return 0, io.ErrUnexpectedEOF
  3357  			}
  3358  			b := dAtA[iNdEx]
  3359  			iNdEx++
  3360  			wire |= (uint64(b) & 0x7F) << shift
  3361  			if b < 0x80 {
  3362  				break
  3363  			}
  3364  		}
  3365  		wireType := int(wire & 0x7)
  3366  		switch wireType {
  3367  		case 0:
  3368  			for shift := uint(0); ; shift += 7 {
  3369  				if shift >= 64 {
  3370  					return 0, ErrIntOverflowTypes
  3371  				}
  3372  				if iNdEx >= l {
  3373  					return 0, io.ErrUnexpectedEOF
  3374  				}
  3375  				iNdEx++
  3376  				if dAtA[iNdEx-1] < 0x80 {
  3377  					break
  3378  				}
  3379  			}
  3380  		case 1:
  3381  			iNdEx += 8
  3382  		case 2:
  3383  			var length int
  3384  			for shift := uint(0); ; shift += 7 {
  3385  				if shift >= 64 {
  3386  					return 0, ErrIntOverflowTypes
  3387  				}
  3388  				if iNdEx >= l {
  3389  					return 0, io.ErrUnexpectedEOF
  3390  				}
  3391  				b := dAtA[iNdEx]
  3392  				iNdEx++
  3393  				length |= (int(b) & 0x7F) << shift
  3394  				if b < 0x80 {
  3395  					break
  3396  				}
  3397  			}
  3398  			if length < 0 {
  3399  				return 0, ErrInvalidLengthTypes
  3400  			}
  3401  			iNdEx += length
  3402  		case 3:
  3403  			depth++
  3404  		case 4:
  3405  			if depth == 0 {
  3406  				return 0, ErrUnexpectedEndOfGroupTypes
  3407  			}
  3408  			depth--
  3409  		case 5:
  3410  			iNdEx += 4
  3411  		default:
  3412  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3413  		}
  3414  		if iNdEx < 0 {
  3415  			return 0, ErrInvalidLengthTypes
  3416  		}
  3417  		if depth == 0 {
  3418  			return iNdEx, nil
  3419  		}
  3420  	}
  3421  	return 0, io.ErrUnexpectedEOF
  3422  }
  3423  
  3424  var (
  3425  	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
  3426  	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
  3427  	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
  3428  )