github.com/number571/tendermint@v0.34.11-gost/proto/tendermint/state/types.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: tendermint/state/types.proto
     3  
     4  package state
     5  
     6  import (
     7  	types "github.com/number571/tendermint/abci/types"
     8  	types1 "github.com/number571/tendermint/proto/tendermint/types"
     9  	version "github.com/number571/tendermint/proto/tendermint/version"
    10  	fmt "fmt"
    11  	_ "github.com/gogo/protobuf/gogoproto"
    12  	proto "github.com/gogo/protobuf/proto"
    13  	_ "github.com/gogo/protobuf/types"
    14  	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
    15  	io "io"
    16  	math "math"
    17  	math_bits "math/bits"
    18  	time "time"
    19  )
    20  
    21  // Reference imports to suppress errors if they are not otherwise used.
    22  var _ = proto.Marshal
    23  var _ = fmt.Errorf
    24  var _ = math.Inf
    25  var _ = time.Kitchen
    26  
    27  // This is a compile-time assertion to ensure that this generated file
    28  // is compatible with the proto package it is being compiled against.
    29  // A compilation error at this line likely means your copy of the
    30  // proto package needs to be updated.
    31  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    32  
    33  // ABCIResponses retains the responses
    34  // of the various ABCI calls during block processing.
    35  // It is persisted to disk for each height before calling Commit.
    36  type ABCIResponses struct {
    37  	DeliverTxs []*types.ResponseDeliverTx `protobuf:"bytes,1,rep,name=deliver_txs,json=deliverTxs,proto3" json:"deliver_txs,omitempty"`
    38  	EndBlock   *types.ResponseEndBlock    `protobuf:"bytes,2,opt,name=end_block,json=endBlock,proto3" json:"end_block,omitempty"`
    39  	BeginBlock *types.ResponseBeginBlock  `protobuf:"bytes,3,opt,name=begin_block,json=beginBlock,proto3" json:"begin_block,omitempty"`
    40  }
    41  
    42  func (m *ABCIResponses) Reset()         { *m = ABCIResponses{} }
    43  func (m *ABCIResponses) String() string { return proto.CompactTextString(m) }
    44  func (*ABCIResponses) ProtoMessage()    {}
    45  func (*ABCIResponses) Descriptor() ([]byte, []int) {
    46  	return fileDescriptor_ccfacf933f22bf93, []int{0}
    47  }
    48  func (m *ABCIResponses) XXX_Unmarshal(b []byte) error {
    49  	return m.Unmarshal(b)
    50  }
    51  func (m *ABCIResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    52  	if deterministic {
    53  		return xxx_messageInfo_ABCIResponses.Marshal(b, m, deterministic)
    54  	} else {
    55  		b = b[:cap(b)]
    56  		n, err := m.MarshalToSizedBuffer(b)
    57  		if err != nil {
    58  			return nil, err
    59  		}
    60  		return b[:n], nil
    61  	}
    62  }
    63  func (m *ABCIResponses) XXX_Merge(src proto.Message) {
    64  	xxx_messageInfo_ABCIResponses.Merge(m, src)
    65  }
    66  func (m *ABCIResponses) XXX_Size() int {
    67  	return m.Size()
    68  }
    69  func (m *ABCIResponses) XXX_DiscardUnknown() {
    70  	xxx_messageInfo_ABCIResponses.DiscardUnknown(m)
    71  }
    72  
    73  var xxx_messageInfo_ABCIResponses proto.InternalMessageInfo
    74  
    75  func (m *ABCIResponses) GetDeliverTxs() []*types.ResponseDeliverTx {
    76  	if m != nil {
    77  		return m.DeliverTxs
    78  	}
    79  	return nil
    80  }
    81  
    82  func (m *ABCIResponses) GetEndBlock() *types.ResponseEndBlock {
    83  	if m != nil {
    84  		return m.EndBlock
    85  	}
    86  	return nil
    87  }
    88  
    89  func (m *ABCIResponses) GetBeginBlock() *types.ResponseBeginBlock {
    90  	if m != nil {
    91  		return m.BeginBlock
    92  	}
    93  	return nil
    94  }
    95  
    96  // ValidatorsInfo represents the latest validator set, or the last height it changed
    97  type ValidatorsInfo struct {
    98  	ValidatorSet      *types1.ValidatorSet `protobuf:"bytes,1,opt,name=validator_set,json=validatorSet,proto3" json:"validator_set,omitempty"`
    99  	LastHeightChanged int64                `protobuf:"varint,2,opt,name=last_height_changed,json=lastHeightChanged,proto3" json:"last_height_changed,omitempty"`
   100  }
   101  
   102  func (m *ValidatorsInfo) Reset()         { *m = ValidatorsInfo{} }
   103  func (m *ValidatorsInfo) String() string { return proto.CompactTextString(m) }
   104  func (*ValidatorsInfo) ProtoMessage()    {}
   105  func (*ValidatorsInfo) Descriptor() ([]byte, []int) {
   106  	return fileDescriptor_ccfacf933f22bf93, []int{1}
   107  }
   108  func (m *ValidatorsInfo) XXX_Unmarshal(b []byte) error {
   109  	return m.Unmarshal(b)
   110  }
   111  func (m *ValidatorsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   112  	if deterministic {
   113  		return xxx_messageInfo_ValidatorsInfo.Marshal(b, m, deterministic)
   114  	} else {
   115  		b = b[:cap(b)]
   116  		n, err := m.MarshalToSizedBuffer(b)
   117  		if err != nil {
   118  			return nil, err
   119  		}
   120  		return b[:n], nil
   121  	}
   122  }
   123  func (m *ValidatorsInfo) XXX_Merge(src proto.Message) {
   124  	xxx_messageInfo_ValidatorsInfo.Merge(m, src)
   125  }
   126  func (m *ValidatorsInfo) XXX_Size() int {
   127  	return m.Size()
   128  }
   129  func (m *ValidatorsInfo) XXX_DiscardUnknown() {
   130  	xxx_messageInfo_ValidatorsInfo.DiscardUnknown(m)
   131  }
   132  
   133  var xxx_messageInfo_ValidatorsInfo proto.InternalMessageInfo
   134  
   135  func (m *ValidatorsInfo) GetValidatorSet() *types1.ValidatorSet {
   136  	if m != nil {
   137  		return m.ValidatorSet
   138  	}
   139  	return nil
   140  }
   141  
   142  func (m *ValidatorsInfo) GetLastHeightChanged() int64 {
   143  	if m != nil {
   144  		return m.LastHeightChanged
   145  	}
   146  	return 0
   147  }
   148  
   149  // ConsensusParamsInfo represents the latest consensus params, or the last height it changed
   150  type ConsensusParamsInfo struct {
   151  	ConsensusParams   types1.ConsensusParams `protobuf:"bytes,1,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params"`
   152  	LastHeightChanged int64                  `protobuf:"varint,2,opt,name=last_height_changed,json=lastHeightChanged,proto3" json:"last_height_changed,omitempty"`
   153  }
   154  
   155  func (m *ConsensusParamsInfo) Reset()         { *m = ConsensusParamsInfo{} }
   156  func (m *ConsensusParamsInfo) String() string { return proto.CompactTextString(m) }
   157  func (*ConsensusParamsInfo) ProtoMessage()    {}
   158  func (*ConsensusParamsInfo) Descriptor() ([]byte, []int) {
   159  	return fileDescriptor_ccfacf933f22bf93, []int{2}
   160  }
   161  func (m *ConsensusParamsInfo) XXX_Unmarshal(b []byte) error {
   162  	return m.Unmarshal(b)
   163  }
   164  func (m *ConsensusParamsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   165  	if deterministic {
   166  		return xxx_messageInfo_ConsensusParamsInfo.Marshal(b, m, deterministic)
   167  	} else {
   168  		b = b[:cap(b)]
   169  		n, err := m.MarshalToSizedBuffer(b)
   170  		if err != nil {
   171  			return nil, err
   172  		}
   173  		return b[:n], nil
   174  	}
   175  }
   176  func (m *ConsensusParamsInfo) XXX_Merge(src proto.Message) {
   177  	xxx_messageInfo_ConsensusParamsInfo.Merge(m, src)
   178  }
   179  func (m *ConsensusParamsInfo) XXX_Size() int {
   180  	return m.Size()
   181  }
   182  func (m *ConsensusParamsInfo) XXX_DiscardUnknown() {
   183  	xxx_messageInfo_ConsensusParamsInfo.DiscardUnknown(m)
   184  }
   185  
   186  var xxx_messageInfo_ConsensusParamsInfo proto.InternalMessageInfo
   187  
   188  func (m *ConsensusParamsInfo) GetConsensusParams() types1.ConsensusParams {
   189  	if m != nil {
   190  		return m.ConsensusParams
   191  	}
   192  	return types1.ConsensusParams{}
   193  }
   194  
   195  func (m *ConsensusParamsInfo) GetLastHeightChanged() int64 {
   196  	if m != nil {
   197  		return m.LastHeightChanged
   198  	}
   199  	return 0
   200  }
   201  
   202  type Version struct {
   203  	Consensus version.Consensus `protobuf:"bytes,1,opt,name=consensus,proto3" json:"consensus"`
   204  	Software  string            `protobuf:"bytes,2,opt,name=software,proto3" json:"software,omitempty"`
   205  }
   206  
   207  func (m *Version) Reset()         { *m = Version{} }
   208  func (m *Version) String() string { return proto.CompactTextString(m) }
   209  func (*Version) ProtoMessage()    {}
   210  func (*Version) Descriptor() ([]byte, []int) {
   211  	return fileDescriptor_ccfacf933f22bf93, []int{3}
   212  }
   213  func (m *Version) XXX_Unmarshal(b []byte) error {
   214  	return m.Unmarshal(b)
   215  }
   216  func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   217  	if deterministic {
   218  		return xxx_messageInfo_Version.Marshal(b, m, deterministic)
   219  	} else {
   220  		b = b[:cap(b)]
   221  		n, err := m.MarshalToSizedBuffer(b)
   222  		if err != nil {
   223  			return nil, err
   224  		}
   225  		return b[:n], nil
   226  	}
   227  }
   228  func (m *Version) XXX_Merge(src proto.Message) {
   229  	xxx_messageInfo_Version.Merge(m, src)
   230  }
   231  func (m *Version) XXX_Size() int {
   232  	return m.Size()
   233  }
   234  func (m *Version) XXX_DiscardUnknown() {
   235  	xxx_messageInfo_Version.DiscardUnknown(m)
   236  }
   237  
   238  var xxx_messageInfo_Version proto.InternalMessageInfo
   239  
   240  func (m *Version) GetConsensus() version.Consensus {
   241  	if m != nil {
   242  		return m.Consensus
   243  	}
   244  	return version.Consensus{}
   245  }
   246  
   247  func (m *Version) GetSoftware() string {
   248  	if m != nil {
   249  		return m.Software
   250  	}
   251  	return ""
   252  }
   253  
   254  type State struct {
   255  	Version Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version"`
   256  	// immutable
   257  	ChainID       string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
   258  	InitialHeight int64  `protobuf:"varint,14,opt,name=initial_height,json=initialHeight,proto3" json:"initial_height,omitempty"`
   259  	// LastBlockHeight=0 at genesis (ie. block(H=0) does not exist)
   260  	LastBlockHeight int64          `protobuf:"varint,3,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"`
   261  	LastBlockID     types1.BlockID `protobuf:"bytes,4,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id"`
   262  	LastBlockTime   time.Time      `protobuf:"bytes,5,opt,name=last_block_time,json=lastBlockTime,proto3,stdtime" json:"last_block_time"`
   263  	// LastValidators is used to validate block.LastCommit.
   264  	// Validators are persisted to the database separately every time they change,
   265  	// so we can query for historical validator sets.
   266  	// Note that if s.LastBlockHeight causes a valset change,
   267  	// we set s.LastHeightValidatorsChanged = s.LastBlockHeight + 1 + 1
   268  	// Extra +1 due to nextValSet delay.
   269  	NextValidators              *types1.ValidatorSet `protobuf:"bytes,6,opt,name=next_validators,json=nextValidators,proto3" json:"next_validators,omitempty"`
   270  	Validators                  *types1.ValidatorSet `protobuf:"bytes,7,opt,name=validators,proto3" json:"validators,omitempty"`
   271  	LastValidators              *types1.ValidatorSet `protobuf:"bytes,8,opt,name=last_validators,json=lastValidators,proto3" json:"last_validators,omitempty"`
   272  	LastHeightValidatorsChanged int64                `protobuf:"varint,9,opt,name=last_height_validators_changed,json=lastHeightValidatorsChanged,proto3" json:"last_height_validators_changed,omitempty"`
   273  	// Consensus parameters used for validating blocks.
   274  	// Changes returned by EndBlock and updated after Commit.
   275  	ConsensusParams                  types1.ConsensusParams `protobuf:"bytes,10,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params"`
   276  	LastHeightConsensusParamsChanged int64                  `protobuf:"varint,11,opt,name=last_height_consensus_params_changed,json=lastHeightConsensusParamsChanged,proto3" json:"last_height_consensus_params_changed,omitempty"`
   277  	// Merkle root of the results from executing prev block
   278  	LastResultsHash []byte `protobuf:"bytes,12,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"`
   279  	// the latest AppHash we've received from calling abci.Commit()
   280  	AppHash []byte `protobuf:"bytes,13,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
   281  }
   282  
   283  func (m *State) Reset()         { *m = State{} }
   284  func (m *State) String() string { return proto.CompactTextString(m) }
   285  func (*State) ProtoMessage()    {}
   286  func (*State) Descriptor() ([]byte, []int) {
   287  	return fileDescriptor_ccfacf933f22bf93, []int{4}
   288  }
   289  func (m *State) XXX_Unmarshal(b []byte) error {
   290  	return m.Unmarshal(b)
   291  }
   292  func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   293  	if deterministic {
   294  		return xxx_messageInfo_State.Marshal(b, m, deterministic)
   295  	} else {
   296  		b = b[:cap(b)]
   297  		n, err := m.MarshalToSizedBuffer(b)
   298  		if err != nil {
   299  			return nil, err
   300  		}
   301  		return b[:n], nil
   302  	}
   303  }
   304  func (m *State) XXX_Merge(src proto.Message) {
   305  	xxx_messageInfo_State.Merge(m, src)
   306  }
   307  func (m *State) XXX_Size() int {
   308  	return m.Size()
   309  }
   310  func (m *State) XXX_DiscardUnknown() {
   311  	xxx_messageInfo_State.DiscardUnknown(m)
   312  }
   313  
   314  var xxx_messageInfo_State proto.InternalMessageInfo
   315  
   316  func (m *State) GetVersion() Version {
   317  	if m != nil {
   318  		return m.Version
   319  	}
   320  	return Version{}
   321  }
   322  
   323  func (m *State) GetChainID() string {
   324  	if m != nil {
   325  		return m.ChainID
   326  	}
   327  	return ""
   328  }
   329  
   330  func (m *State) GetInitialHeight() int64 {
   331  	if m != nil {
   332  		return m.InitialHeight
   333  	}
   334  	return 0
   335  }
   336  
   337  func (m *State) GetLastBlockHeight() int64 {
   338  	if m != nil {
   339  		return m.LastBlockHeight
   340  	}
   341  	return 0
   342  }
   343  
   344  func (m *State) GetLastBlockID() types1.BlockID {
   345  	if m != nil {
   346  		return m.LastBlockID
   347  	}
   348  	return types1.BlockID{}
   349  }
   350  
   351  func (m *State) GetLastBlockTime() time.Time {
   352  	if m != nil {
   353  		return m.LastBlockTime
   354  	}
   355  	return time.Time{}
   356  }
   357  
   358  func (m *State) GetNextValidators() *types1.ValidatorSet {
   359  	if m != nil {
   360  		return m.NextValidators
   361  	}
   362  	return nil
   363  }
   364  
   365  func (m *State) GetValidators() *types1.ValidatorSet {
   366  	if m != nil {
   367  		return m.Validators
   368  	}
   369  	return nil
   370  }
   371  
   372  func (m *State) GetLastValidators() *types1.ValidatorSet {
   373  	if m != nil {
   374  		return m.LastValidators
   375  	}
   376  	return nil
   377  }
   378  
   379  func (m *State) GetLastHeightValidatorsChanged() int64 {
   380  	if m != nil {
   381  		return m.LastHeightValidatorsChanged
   382  	}
   383  	return 0
   384  }
   385  
   386  func (m *State) GetConsensusParams() types1.ConsensusParams {
   387  	if m != nil {
   388  		return m.ConsensusParams
   389  	}
   390  	return types1.ConsensusParams{}
   391  }
   392  
   393  func (m *State) GetLastHeightConsensusParamsChanged() int64 {
   394  	if m != nil {
   395  		return m.LastHeightConsensusParamsChanged
   396  	}
   397  	return 0
   398  }
   399  
   400  func (m *State) GetLastResultsHash() []byte {
   401  	if m != nil {
   402  		return m.LastResultsHash
   403  	}
   404  	return nil
   405  }
   406  
   407  func (m *State) GetAppHash() []byte {
   408  	if m != nil {
   409  		return m.AppHash
   410  	}
   411  	return nil
   412  }
   413  
   414  func init() {
   415  	proto.RegisterType((*ABCIResponses)(nil), "tendermint.state.ABCIResponses")
   416  	proto.RegisterType((*ValidatorsInfo)(nil), "tendermint.state.ValidatorsInfo")
   417  	proto.RegisterType((*ConsensusParamsInfo)(nil), "tendermint.state.ConsensusParamsInfo")
   418  	proto.RegisterType((*Version)(nil), "tendermint.state.Version")
   419  	proto.RegisterType((*State)(nil), "tendermint.state.State")
   420  }
   421  
   422  func init() { proto.RegisterFile("tendermint/state/types.proto", fileDescriptor_ccfacf933f22bf93) }
   423  
   424  var fileDescriptor_ccfacf933f22bf93 = []byte{
   425  	// 763 bytes of a gzipped FileDescriptorProto
   426  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xcf, 0x6f, 0xd3, 0x30,
   427  	0x14, 0x6e, 0xe8, 0xb6, 0xb6, 0xce, 0xda, 0x0e, 0x8f, 0x43, 0xd6, 0xb1, 0xb4, 0x2b, 0x3f, 0x34,
   428  	0x71, 0x48, 0xa5, 0x71, 0x40, 0x5c, 0x26, 0x2d, 0x2d, 0x62, 0x95, 0x26, 0x04, 0xd9, 0xb4, 0x03,
   429  	0x97, 0xc8, 0x6d, 0xbc, 0x24, 0xa2, 0x4d, 0xa2, 0xd8, 0x2d, 0xe3, 0x0f, 0xe0, 0xbe, 0x2b, 0xff,
   430  	0xd1, 0x8e, 0x3b, 0x22, 0x0e, 0x03, 0xba, 0x7f, 0x04, 0xd9, 0xce, 0x0f, 0xb7, 0x65, 0xd2, 0x10,
   431  	0x37, 0xfb, 0x7d, 0xdf, 0xfb, 0xfc, 0xf9, 0xf9, 0x3d, 0x19, 0x3c, 0xa6, 0x38, 0x70, 0x70, 0x3c,
   432  	0xf6, 0x03, 0xda, 0x21, 0x14, 0x51, 0xdc, 0xa1, 0x5f, 0x22, 0x4c, 0x8c, 0x28, 0x0e, 0x69, 0x08,
   433  	0x37, 0x72, 0xd4, 0xe0, 0x68, 0xe3, 0x91, 0x1b, 0xba, 0x21, 0x07, 0x3b, 0x6c, 0x25, 0x78, 0x8d,
   434  	0x6d, 0x49, 0x05, 0x0d, 0x86, 0xbe, 0x2c, 0xd2, 0x90, 0x8f, 0xe0, 0xf1, 0x39, 0xb4, 0xb5, 0x84,
   435  	0x4e, 0xd1, 0xc8, 0x77, 0x10, 0x0d, 0xe3, 0x84, 0xb1, 0xb3, 0xc4, 0x88, 0x50, 0x8c, 0xc6, 0xa9,
   436  	0x80, 0x2e, 0xc1, 0x53, 0x1c, 0x13, 0x3f, 0x0c, 0xe6, 0x0e, 0x68, 0xba, 0x61, 0xe8, 0x8e, 0x70,
   437  	0x87, 0xef, 0x06, 0x93, 0xf3, 0x0e, 0xf5, 0xc7, 0x98, 0x50, 0x34, 0x8e, 0x04, 0xa1, 0xfd, 0x43,
   438  	0x01, 0xd5, 0x43, 0xb3, 0xdb, 0xb7, 0x30, 0x89, 0xc2, 0x80, 0x60, 0x02, 0xbb, 0x40, 0x75, 0xf0,
   439  	0xc8, 0x9f, 0xe2, 0xd8, 0xa6, 0x17, 0x44, 0x53, 0x5a, 0xc5, 0x3d, 0x75, 0xbf, 0x6d, 0x48, 0xc5,
   440  	0x60, 0x97, 0x34, 0xd2, 0x84, 0x9e, 0xe0, 0x9e, 0x5e, 0x58, 0xc0, 0x49, 0x97, 0x04, 0x1e, 0x80,
   441  	0x0a, 0x0e, 0x1c, 0x7b, 0x30, 0x0a, 0x87, 0x9f, 0xb4, 0x07, 0x2d, 0x65, 0x4f, 0xdd, 0xdf, 0xbd,
   442  	0x53, 0xe2, 0x4d, 0xe0, 0x98, 0x8c, 0x68, 0x95, 0x71, 0xb2, 0x82, 0x3d, 0xa0, 0x0e, 0xb0, 0xeb,
   443  	0x07, 0x89, 0x42, 0x91, 0x2b, 0x3c, 0xb9, 0x53, 0xc1, 0x64, 0x5c, 0xa1, 0x01, 0x06, 0xd9, 0xba,
   444  	0xfd, 0x55, 0x01, 0xb5, 0xb3, 0xb4, 0xa0, 0xa4, 0x1f, 0x9c, 0x87, 0xb0, 0x0b, 0xaa, 0x59, 0x89,
   445  	0x6d, 0x82, 0xa9, 0xa6, 0x70, 0x69, 0x5d, 0x96, 0x16, 0x05, 0xcc, 0x12, 0x4f, 0x30, 0xb5, 0xd6,
   446  	0xa7, 0xd2, 0x0e, 0x1a, 0x60, 0x73, 0x84, 0x08, 0xb5, 0x3d, 0xec, 0xbb, 0x1e, 0xb5, 0x87, 0x1e,
   447  	0x0a, 0x5c, 0xec, 0xf0, 0x7b, 0x16, 0xad, 0x87, 0x0c, 0x3a, 0xe2, 0x48, 0x57, 0x00, 0xed, 0x6f,
   448  	0x0a, 0xd8, 0xec, 0x32, 0x9f, 0x01, 0x99, 0x90, 0xf7, 0xfc, 0xfd, 0xb8, 0x19, 0x0b, 0x6c, 0x0c,
   449  	0xd3, 0xb0, 0x2d, 0xde, 0x35, 0xf1, 0xb3, 0xbb, 0xec, 0x67, 0x41, 0xc0, 0x5c, 0xb9, 0xba, 0x69,
   450  	0x16, 0xac, 0xfa, 0x70, 0x3e, 0xfc, 0xcf, 0xde, 0x3c, 0x50, 0x3a, 0x13, 0x8d, 0x03, 0x0f, 0x41,
   451  	0x25, 0x53, 0x4b, 0x7c, 0xec, 0xc8, 0x3e, 0x92, 0x06, 0xcb, 0x9d, 0x24, 0x1e, 0xf2, 0x2c, 0xd8,
   452  	0x00, 0x65, 0x12, 0x9e, 0xd3, 0xcf, 0x28, 0xc6, 0xfc, 0xc8, 0x8a, 0x95, 0xed, 0xdb, 0xbf, 0xd7,
   453  	0xc0, 0xea, 0x09, 0x9b, 0x23, 0xf8, 0x1a, 0x94, 0x12, 0xad, 0xe4, 0x98, 0x2d, 0x63, 0x71, 0xd6,
   454  	0x8c, 0xc4, 0x54, 0x72, 0x44, 0xca, 0x87, 0xcf, 0x41, 0x79, 0xe8, 0x21, 0x3f, 0xb0, 0x7d, 0x71,
   455  	0xa7, 0x8a, 0xa9, 0xce, 0x6e, 0x9a, 0xa5, 0x2e, 0x8b, 0xf5, 0x7b, 0x56, 0x89, 0x83, 0x7d, 0x07,
   456  	0x3e, 0x03, 0x35, 0x3f, 0xf0, 0xa9, 0x8f, 0x46, 0x49, 0x25, 0xb4, 0x1a, 0xaf, 0x40, 0x35, 0x89,
   457  	0x8a, 0x22, 0xc0, 0x17, 0x80, 0x97, 0x44, 0xb4, 0x59, 0xca, 0x2c, 0x72, 0x66, 0x9d, 0x01, 0xbc,
   458  	0x8f, 0x12, 0xae, 0x05, 0xaa, 0x12, 0xd7, 0x77, 0xb4, 0x95, 0x65, 0xef, 0xe2, 0xa9, 0x78, 0x56,
   459  	0xbf, 0x67, 0x6e, 0x32, 0xef, 0xb3, 0x9b, 0xa6, 0x7a, 0x9c, 0x4a, 0xf5, 0x7b, 0x96, 0x9a, 0xe9,
   460  	0xf6, 0x1d, 0x78, 0x0c, 0xea, 0x92, 0x26, 0x1b, 0x4e, 0x6d, 0x95, 0xab, 0x36, 0x0c, 0x31, 0xb9,
   461  	0x46, 0x3a, 0xb9, 0xc6, 0x69, 0x3a, 0xb9, 0x66, 0x99, 0xc9, 0x5e, 0xfe, 0x6c, 0x2a, 0x56, 0x35,
   462  	0xd3, 0x62, 0x28, 0x7c, 0x0b, 0xea, 0x01, 0xbe, 0xa0, 0x76, 0xd6, 0xac, 0x44, 0x5b, 0xbb, 0x57,
   463  	0x7b, 0xd7, 0x58, 0x5a, 0x3e, 0x29, 0xf0, 0x00, 0x00, 0x49, 0xa3, 0x74, 0x2f, 0x0d, 0x29, 0x83,
   464  	0x19, 0xe1, 0xd7, 0x92, 0x44, 0xca, 0xf7, 0x33, 0xc2, 0xd2, 0x24, 0x23, 0x5d, 0xa0, 0xcb, 0xdd,
   465  	0x9c, 0xeb, 0x65, 0x8d, 0x5d, 0xe1, 0x8f, 0xb5, 0x9d, 0x37, 0x76, 0x9e, 0x9d, 0xb4, 0xf8, 0x5f,
   466  	0xc7, 0x0c, 0xfc, 0xe7, 0x98, 0xbd, 0x03, 0x4f, 0xe7, 0xc6, 0x6c, 0x41, 0x3f, 0xb3, 0xa7, 0x72,
   467  	0x7b, 0x2d, 0x69, 0xee, 0xe6, 0x85, 0x52, 0x8f, 0x69, 0x23, 0xc6, 0x98, 0x4c, 0x46, 0x94, 0xd8,
   468  	0x1e, 0x22, 0x9e, 0xb6, 0xde, 0x52, 0xf6, 0xd6, 0x45, 0x23, 0x5a, 0x22, 0x7e, 0x84, 0x88, 0x07,
   469  	0xb7, 0x40, 0x19, 0x45, 0x91, 0xa0, 0x54, 0x39, 0xa5, 0x84, 0xa2, 0x88, 0x41, 0xe6, 0x87, 0xab,
   470  	0x99, 0xae, 0x5c, 0xcf, 0x74, 0xe5, 0xd7, 0x4c, 0x57, 0x2e, 0x6f, 0xf5, 0xc2, 0xf5, 0xad, 0x5e,
   471  	0xf8, 0x7e, 0xab, 0x17, 0x3e, 0xbe, 0x72, 0x7d, 0xea, 0x4d, 0x06, 0xc6, 0x30, 0x1c, 0x77, 0xe4,
   472  	0x3f, 0x25, 0x5f, 0x8a, 0x8f, 0x6d, 0xf1, 0x4b, 0x1c, 0xac, 0xf1, 0xf8, 0xcb, 0x3f, 0x01, 0x00,
   473  	0x00, 0xff, 0xff, 0xa5, 0x17, 0xac, 0x23, 0x2d, 0x07, 0x00, 0x00,
   474  }
   475  
   476  func (m *ABCIResponses) Marshal() (dAtA []byte, err error) {
   477  	size := m.Size()
   478  	dAtA = make([]byte, size)
   479  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   480  	if err != nil {
   481  		return nil, err
   482  	}
   483  	return dAtA[:n], nil
   484  }
   485  
   486  func (m *ABCIResponses) MarshalTo(dAtA []byte) (int, error) {
   487  	size := m.Size()
   488  	return m.MarshalToSizedBuffer(dAtA[:size])
   489  }
   490  
   491  func (m *ABCIResponses) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   492  	i := len(dAtA)
   493  	_ = i
   494  	var l int
   495  	_ = l
   496  	if m.BeginBlock != nil {
   497  		{
   498  			size, err := m.BeginBlock.MarshalToSizedBuffer(dAtA[:i])
   499  			if err != nil {
   500  				return 0, err
   501  			}
   502  			i -= size
   503  			i = encodeVarintTypes(dAtA, i, uint64(size))
   504  		}
   505  		i--
   506  		dAtA[i] = 0x1a
   507  	}
   508  	if m.EndBlock != nil {
   509  		{
   510  			size, err := m.EndBlock.MarshalToSizedBuffer(dAtA[:i])
   511  			if err != nil {
   512  				return 0, err
   513  			}
   514  			i -= size
   515  			i = encodeVarintTypes(dAtA, i, uint64(size))
   516  		}
   517  		i--
   518  		dAtA[i] = 0x12
   519  	}
   520  	if len(m.DeliverTxs) > 0 {
   521  		for iNdEx := len(m.DeliverTxs) - 1; iNdEx >= 0; iNdEx-- {
   522  			{
   523  				size, err := m.DeliverTxs[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   524  				if err != nil {
   525  					return 0, err
   526  				}
   527  				i -= size
   528  				i = encodeVarintTypes(dAtA, i, uint64(size))
   529  			}
   530  			i--
   531  			dAtA[i] = 0xa
   532  		}
   533  	}
   534  	return len(dAtA) - i, nil
   535  }
   536  
   537  func (m *ValidatorsInfo) Marshal() (dAtA []byte, err error) {
   538  	size := m.Size()
   539  	dAtA = make([]byte, size)
   540  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   541  	if err != nil {
   542  		return nil, err
   543  	}
   544  	return dAtA[:n], nil
   545  }
   546  
   547  func (m *ValidatorsInfo) MarshalTo(dAtA []byte) (int, error) {
   548  	size := m.Size()
   549  	return m.MarshalToSizedBuffer(dAtA[:size])
   550  }
   551  
   552  func (m *ValidatorsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   553  	i := len(dAtA)
   554  	_ = i
   555  	var l int
   556  	_ = l
   557  	if m.LastHeightChanged != 0 {
   558  		i = encodeVarintTypes(dAtA, i, uint64(m.LastHeightChanged))
   559  		i--
   560  		dAtA[i] = 0x10
   561  	}
   562  	if m.ValidatorSet != nil {
   563  		{
   564  			size, err := m.ValidatorSet.MarshalToSizedBuffer(dAtA[:i])
   565  			if err != nil {
   566  				return 0, err
   567  			}
   568  			i -= size
   569  			i = encodeVarintTypes(dAtA, i, uint64(size))
   570  		}
   571  		i--
   572  		dAtA[i] = 0xa
   573  	}
   574  	return len(dAtA) - i, nil
   575  }
   576  
   577  func (m *ConsensusParamsInfo) Marshal() (dAtA []byte, err error) {
   578  	size := m.Size()
   579  	dAtA = make([]byte, size)
   580  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   581  	if err != nil {
   582  		return nil, err
   583  	}
   584  	return dAtA[:n], nil
   585  }
   586  
   587  func (m *ConsensusParamsInfo) MarshalTo(dAtA []byte) (int, error) {
   588  	size := m.Size()
   589  	return m.MarshalToSizedBuffer(dAtA[:size])
   590  }
   591  
   592  func (m *ConsensusParamsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   593  	i := len(dAtA)
   594  	_ = i
   595  	var l int
   596  	_ = l
   597  	if m.LastHeightChanged != 0 {
   598  		i = encodeVarintTypes(dAtA, i, uint64(m.LastHeightChanged))
   599  		i--
   600  		dAtA[i] = 0x10
   601  	}
   602  	{
   603  		size, err := m.ConsensusParams.MarshalToSizedBuffer(dAtA[:i])
   604  		if err != nil {
   605  			return 0, err
   606  		}
   607  		i -= size
   608  		i = encodeVarintTypes(dAtA, i, uint64(size))
   609  	}
   610  	i--
   611  	dAtA[i] = 0xa
   612  	return len(dAtA) - i, nil
   613  }
   614  
   615  func (m *Version) Marshal() (dAtA []byte, err error) {
   616  	size := m.Size()
   617  	dAtA = make([]byte, size)
   618  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   619  	if err != nil {
   620  		return nil, err
   621  	}
   622  	return dAtA[:n], nil
   623  }
   624  
   625  func (m *Version) MarshalTo(dAtA []byte) (int, error) {
   626  	size := m.Size()
   627  	return m.MarshalToSizedBuffer(dAtA[:size])
   628  }
   629  
   630  func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   631  	i := len(dAtA)
   632  	_ = i
   633  	var l int
   634  	_ = l
   635  	if len(m.Software) > 0 {
   636  		i -= len(m.Software)
   637  		copy(dAtA[i:], m.Software)
   638  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Software)))
   639  		i--
   640  		dAtA[i] = 0x12
   641  	}
   642  	{
   643  		size, err := m.Consensus.MarshalToSizedBuffer(dAtA[:i])
   644  		if err != nil {
   645  			return 0, err
   646  		}
   647  		i -= size
   648  		i = encodeVarintTypes(dAtA, i, uint64(size))
   649  	}
   650  	i--
   651  	dAtA[i] = 0xa
   652  	return len(dAtA) - i, nil
   653  }
   654  
   655  func (m *State) Marshal() (dAtA []byte, err error) {
   656  	size := m.Size()
   657  	dAtA = make([]byte, size)
   658  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   659  	if err != nil {
   660  		return nil, err
   661  	}
   662  	return dAtA[:n], nil
   663  }
   664  
   665  func (m *State) MarshalTo(dAtA []byte) (int, error) {
   666  	size := m.Size()
   667  	return m.MarshalToSizedBuffer(dAtA[:size])
   668  }
   669  
   670  func (m *State) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   671  	i := len(dAtA)
   672  	_ = i
   673  	var l int
   674  	_ = l
   675  	if m.InitialHeight != 0 {
   676  		i = encodeVarintTypes(dAtA, i, uint64(m.InitialHeight))
   677  		i--
   678  		dAtA[i] = 0x70
   679  	}
   680  	if len(m.AppHash) > 0 {
   681  		i -= len(m.AppHash)
   682  		copy(dAtA[i:], m.AppHash)
   683  		i = encodeVarintTypes(dAtA, i, uint64(len(m.AppHash)))
   684  		i--
   685  		dAtA[i] = 0x6a
   686  	}
   687  	if len(m.LastResultsHash) > 0 {
   688  		i -= len(m.LastResultsHash)
   689  		copy(dAtA[i:], m.LastResultsHash)
   690  		i = encodeVarintTypes(dAtA, i, uint64(len(m.LastResultsHash)))
   691  		i--
   692  		dAtA[i] = 0x62
   693  	}
   694  	if m.LastHeightConsensusParamsChanged != 0 {
   695  		i = encodeVarintTypes(dAtA, i, uint64(m.LastHeightConsensusParamsChanged))
   696  		i--
   697  		dAtA[i] = 0x58
   698  	}
   699  	{
   700  		size, err := m.ConsensusParams.MarshalToSizedBuffer(dAtA[:i])
   701  		if err != nil {
   702  			return 0, err
   703  		}
   704  		i -= size
   705  		i = encodeVarintTypes(dAtA, i, uint64(size))
   706  	}
   707  	i--
   708  	dAtA[i] = 0x52
   709  	if m.LastHeightValidatorsChanged != 0 {
   710  		i = encodeVarintTypes(dAtA, i, uint64(m.LastHeightValidatorsChanged))
   711  		i--
   712  		dAtA[i] = 0x48
   713  	}
   714  	if m.LastValidators != nil {
   715  		{
   716  			size, err := m.LastValidators.MarshalToSizedBuffer(dAtA[:i])
   717  			if err != nil {
   718  				return 0, err
   719  			}
   720  			i -= size
   721  			i = encodeVarintTypes(dAtA, i, uint64(size))
   722  		}
   723  		i--
   724  		dAtA[i] = 0x42
   725  	}
   726  	if m.Validators != nil {
   727  		{
   728  			size, err := m.Validators.MarshalToSizedBuffer(dAtA[:i])
   729  			if err != nil {
   730  				return 0, err
   731  			}
   732  			i -= size
   733  			i = encodeVarintTypes(dAtA, i, uint64(size))
   734  		}
   735  		i--
   736  		dAtA[i] = 0x3a
   737  	}
   738  	if m.NextValidators != nil {
   739  		{
   740  			size, err := m.NextValidators.MarshalToSizedBuffer(dAtA[:i])
   741  			if err != nil {
   742  				return 0, err
   743  			}
   744  			i -= size
   745  			i = encodeVarintTypes(dAtA, i, uint64(size))
   746  		}
   747  		i--
   748  		dAtA[i] = 0x32
   749  	}
   750  	n10, err10 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.LastBlockTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.LastBlockTime):])
   751  	if err10 != nil {
   752  		return 0, err10
   753  	}
   754  	i -= n10
   755  	i = encodeVarintTypes(dAtA, i, uint64(n10))
   756  	i--
   757  	dAtA[i] = 0x2a
   758  	{
   759  		size, err := m.LastBlockID.MarshalToSizedBuffer(dAtA[:i])
   760  		if err != nil {
   761  			return 0, err
   762  		}
   763  		i -= size
   764  		i = encodeVarintTypes(dAtA, i, uint64(size))
   765  	}
   766  	i--
   767  	dAtA[i] = 0x22
   768  	if m.LastBlockHeight != 0 {
   769  		i = encodeVarintTypes(dAtA, i, uint64(m.LastBlockHeight))
   770  		i--
   771  		dAtA[i] = 0x18
   772  	}
   773  	if len(m.ChainID) > 0 {
   774  		i -= len(m.ChainID)
   775  		copy(dAtA[i:], m.ChainID)
   776  		i = encodeVarintTypes(dAtA, i, uint64(len(m.ChainID)))
   777  		i--
   778  		dAtA[i] = 0x12
   779  	}
   780  	{
   781  		size, err := m.Version.MarshalToSizedBuffer(dAtA[:i])
   782  		if err != nil {
   783  			return 0, err
   784  		}
   785  		i -= size
   786  		i = encodeVarintTypes(dAtA, i, uint64(size))
   787  	}
   788  	i--
   789  	dAtA[i] = 0xa
   790  	return len(dAtA) - i, nil
   791  }
   792  
   793  func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
   794  	offset -= sovTypes(v)
   795  	base := offset
   796  	for v >= 1<<7 {
   797  		dAtA[offset] = uint8(v&0x7f | 0x80)
   798  		v >>= 7
   799  		offset++
   800  	}
   801  	dAtA[offset] = uint8(v)
   802  	return base
   803  }
   804  func (m *ABCIResponses) Size() (n int) {
   805  	if m == nil {
   806  		return 0
   807  	}
   808  	var l int
   809  	_ = l
   810  	if len(m.DeliverTxs) > 0 {
   811  		for _, e := range m.DeliverTxs {
   812  			l = e.Size()
   813  			n += 1 + l + sovTypes(uint64(l))
   814  		}
   815  	}
   816  	if m.EndBlock != nil {
   817  		l = m.EndBlock.Size()
   818  		n += 1 + l + sovTypes(uint64(l))
   819  	}
   820  	if m.BeginBlock != nil {
   821  		l = m.BeginBlock.Size()
   822  		n += 1 + l + sovTypes(uint64(l))
   823  	}
   824  	return n
   825  }
   826  
   827  func (m *ValidatorsInfo) Size() (n int) {
   828  	if m == nil {
   829  		return 0
   830  	}
   831  	var l int
   832  	_ = l
   833  	if m.ValidatorSet != nil {
   834  		l = m.ValidatorSet.Size()
   835  		n += 1 + l + sovTypes(uint64(l))
   836  	}
   837  	if m.LastHeightChanged != 0 {
   838  		n += 1 + sovTypes(uint64(m.LastHeightChanged))
   839  	}
   840  	return n
   841  }
   842  
   843  func (m *ConsensusParamsInfo) Size() (n int) {
   844  	if m == nil {
   845  		return 0
   846  	}
   847  	var l int
   848  	_ = l
   849  	l = m.ConsensusParams.Size()
   850  	n += 1 + l + sovTypes(uint64(l))
   851  	if m.LastHeightChanged != 0 {
   852  		n += 1 + sovTypes(uint64(m.LastHeightChanged))
   853  	}
   854  	return n
   855  }
   856  
   857  func (m *Version) Size() (n int) {
   858  	if m == nil {
   859  		return 0
   860  	}
   861  	var l int
   862  	_ = l
   863  	l = m.Consensus.Size()
   864  	n += 1 + l + sovTypes(uint64(l))
   865  	l = len(m.Software)
   866  	if l > 0 {
   867  		n += 1 + l + sovTypes(uint64(l))
   868  	}
   869  	return n
   870  }
   871  
   872  func (m *State) Size() (n int) {
   873  	if m == nil {
   874  		return 0
   875  	}
   876  	var l int
   877  	_ = l
   878  	l = m.Version.Size()
   879  	n += 1 + l + sovTypes(uint64(l))
   880  	l = len(m.ChainID)
   881  	if l > 0 {
   882  		n += 1 + l + sovTypes(uint64(l))
   883  	}
   884  	if m.LastBlockHeight != 0 {
   885  		n += 1 + sovTypes(uint64(m.LastBlockHeight))
   886  	}
   887  	l = m.LastBlockID.Size()
   888  	n += 1 + l + sovTypes(uint64(l))
   889  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.LastBlockTime)
   890  	n += 1 + l + sovTypes(uint64(l))
   891  	if m.NextValidators != nil {
   892  		l = m.NextValidators.Size()
   893  		n += 1 + l + sovTypes(uint64(l))
   894  	}
   895  	if m.Validators != nil {
   896  		l = m.Validators.Size()
   897  		n += 1 + l + sovTypes(uint64(l))
   898  	}
   899  	if m.LastValidators != nil {
   900  		l = m.LastValidators.Size()
   901  		n += 1 + l + sovTypes(uint64(l))
   902  	}
   903  	if m.LastHeightValidatorsChanged != 0 {
   904  		n += 1 + sovTypes(uint64(m.LastHeightValidatorsChanged))
   905  	}
   906  	l = m.ConsensusParams.Size()
   907  	n += 1 + l + sovTypes(uint64(l))
   908  	if m.LastHeightConsensusParamsChanged != 0 {
   909  		n += 1 + sovTypes(uint64(m.LastHeightConsensusParamsChanged))
   910  	}
   911  	l = len(m.LastResultsHash)
   912  	if l > 0 {
   913  		n += 1 + l + sovTypes(uint64(l))
   914  	}
   915  	l = len(m.AppHash)
   916  	if l > 0 {
   917  		n += 1 + l + sovTypes(uint64(l))
   918  	}
   919  	if m.InitialHeight != 0 {
   920  		n += 1 + sovTypes(uint64(m.InitialHeight))
   921  	}
   922  	return n
   923  }
   924  
   925  func sovTypes(x uint64) (n int) {
   926  	return (math_bits.Len64(x|1) + 6) / 7
   927  }
   928  func sozTypes(x uint64) (n int) {
   929  	return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   930  }
   931  func (m *ABCIResponses) Unmarshal(dAtA []byte) error {
   932  	l := len(dAtA)
   933  	iNdEx := 0
   934  	for iNdEx < l {
   935  		preIndex := iNdEx
   936  		var wire uint64
   937  		for shift := uint(0); ; shift += 7 {
   938  			if shift >= 64 {
   939  				return ErrIntOverflowTypes
   940  			}
   941  			if iNdEx >= l {
   942  				return io.ErrUnexpectedEOF
   943  			}
   944  			b := dAtA[iNdEx]
   945  			iNdEx++
   946  			wire |= uint64(b&0x7F) << shift
   947  			if b < 0x80 {
   948  				break
   949  			}
   950  		}
   951  		fieldNum := int32(wire >> 3)
   952  		wireType := int(wire & 0x7)
   953  		if wireType == 4 {
   954  			return fmt.Errorf("proto: ABCIResponses: wiretype end group for non-group")
   955  		}
   956  		if fieldNum <= 0 {
   957  			return fmt.Errorf("proto: ABCIResponses: illegal tag %d (wire type %d)", fieldNum, wire)
   958  		}
   959  		switch fieldNum {
   960  		case 1:
   961  			if wireType != 2 {
   962  				return fmt.Errorf("proto: wrong wireType = %d for field DeliverTxs", wireType)
   963  			}
   964  			var msglen int
   965  			for shift := uint(0); ; shift += 7 {
   966  				if shift >= 64 {
   967  					return ErrIntOverflowTypes
   968  				}
   969  				if iNdEx >= l {
   970  					return io.ErrUnexpectedEOF
   971  				}
   972  				b := dAtA[iNdEx]
   973  				iNdEx++
   974  				msglen |= int(b&0x7F) << shift
   975  				if b < 0x80 {
   976  					break
   977  				}
   978  			}
   979  			if msglen < 0 {
   980  				return ErrInvalidLengthTypes
   981  			}
   982  			postIndex := iNdEx + msglen
   983  			if postIndex < 0 {
   984  				return ErrInvalidLengthTypes
   985  			}
   986  			if postIndex > l {
   987  				return io.ErrUnexpectedEOF
   988  			}
   989  			m.DeliverTxs = append(m.DeliverTxs, &types.ResponseDeliverTx{})
   990  			if err := m.DeliverTxs[len(m.DeliverTxs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   991  				return err
   992  			}
   993  			iNdEx = postIndex
   994  		case 2:
   995  			if wireType != 2 {
   996  				return fmt.Errorf("proto: wrong wireType = %d for field EndBlock", wireType)
   997  			}
   998  			var msglen int
   999  			for shift := uint(0); ; shift += 7 {
  1000  				if shift >= 64 {
  1001  					return ErrIntOverflowTypes
  1002  				}
  1003  				if iNdEx >= l {
  1004  					return io.ErrUnexpectedEOF
  1005  				}
  1006  				b := dAtA[iNdEx]
  1007  				iNdEx++
  1008  				msglen |= int(b&0x7F) << shift
  1009  				if b < 0x80 {
  1010  					break
  1011  				}
  1012  			}
  1013  			if msglen < 0 {
  1014  				return ErrInvalidLengthTypes
  1015  			}
  1016  			postIndex := iNdEx + msglen
  1017  			if postIndex < 0 {
  1018  				return ErrInvalidLengthTypes
  1019  			}
  1020  			if postIndex > l {
  1021  				return io.ErrUnexpectedEOF
  1022  			}
  1023  			if m.EndBlock == nil {
  1024  				m.EndBlock = &types.ResponseEndBlock{}
  1025  			}
  1026  			if err := m.EndBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1027  				return err
  1028  			}
  1029  			iNdEx = postIndex
  1030  		case 3:
  1031  			if wireType != 2 {
  1032  				return fmt.Errorf("proto: wrong wireType = %d for field BeginBlock", wireType)
  1033  			}
  1034  			var msglen int
  1035  			for shift := uint(0); ; shift += 7 {
  1036  				if shift >= 64 {
  1037  					return ErrIntOverflowTypes
  1038  				}
  1039  				if iNdEx >= l {
  1040  					return io.ErrUnexpectedEOF
  1041  				}
  1042  				b := dAtA[iNdEx]
  1043  				iNdEx++
  1044  				msglen |= int(b&0x7F) << shift
  1045  				if b < 0x80 {
  1046  					break
  1047  				}
  1048  			}
  1049  			if msglen < 0 {
  1050  				return ErrInvalidLengthTypes
  1051  			}
  1052  			postIndex := iNdEx + msglen
  1053  			if postIndex < 0 {
  1054  				return ErrInvalidLengthTypes
  1055  			}
  1056  			if postIndex > l {
  1057  				return io.ErrUnexpectedEOF
  1058  			}
  1059  			if m.BeginBlock == nil {
  1060  				m.BeginBlock = &types.ResponseBeginBlock{}
  1061  			}
  1062  			if err := m.BeginBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1063  				return err
  1064  			}
  1065  			iNdEx = postIndex
  1066  		default:
  1067  			iNdEx = preIndex
  1068  			skippy, err := skipTypes(dAtA[iNdEx:])
  1069  			if err != nil {
  1070  				return err
  1071  			}
  1072  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1073  				return ErrInvalidLengthTypes
  1074  			}
  1075  			if (iNdEx + skippy) > l {
  1076  				return io.ErrUnexpectedEOF
  1077  			}
  1078  			iNdEx += skippy
  1079  		}
  1080  	}
  1081  
  1082  	if iNdEx > l {
  1083  		return io.ErrUnexpectedEOF
  1084  	}
  1085  	return nil
  1086  }
  1087  func (m *ValidatorsInfo) Unmarshal(dAtA []byte) error {
  1088  	l := len(dAtA)
  1089  	iNdEx := 0
  1090  	for iNdEx < l {
  1091  		preIndex := iNdEx
  1092  		var wire uint64
  1093  		for shift := uint(0); ; shift += 7 {
  1094  			if shift >= 64 {
  1095  				return ErrIntOverflowTypes
  1096  			}
  1097  			if iNdEx >= l {
  1098  				return io.ErrUnexpectedEOF
  1099  			}
  1100  			b := dAtA[iNdEx]
  1101  			iNdEx++
  1102  			wire |= uint64(b&0x7F) << shift
  1103  			if b < 0x80 {
  1104  				break
  1105  			}
  1106  		}
  1107  		fieldNum := int32(wire >> 3)
  1108  		wireType := int(wire & 0x7)
  1109  		if wireType == 4 {
  1110  			return fmt.Errorf("proto: ValidatorsInfo: wiretype end group for non-group")
  1111  		}
  1112  		if fieldNum <= 0 {
  1113  			return fmt.Errorf("proto: ValidatorsInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  1114  		}
  1115  		switch fieldNum {
  1116  		case 1:
  1117  			if wireType != 2 {
  1118  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorSet", wireType)
  1119  			}
  1120  			var msglen int
  1121  			for shift := uint(0); ; shift += 7 {
  1122  				if shift >= 64 {
  1123  					return ErrIntOverflowTypes
  1124  				}
  1125  				if iNdEx >= l {
  1126  					return io.ErrUnexpectedEOF
  1127  				}
  1128  				b := dAtA[iNdEx]
  1129  				iNdEx++
  1130  				msglen |= int(b&0x7F) << shift
  1131  				if b < 0x80 {
  1132  					break
  1133  				}
  1134  			}
  1135  			if msglen < 0 {
  1136  				return ErrInvalidLengthTypes
  1137  			}
  1138  			postIndex := iNdEx + msglen
  1139  			if postIndex < 0 {
  1140  				return ErrInvalidLengthTypes
  1141  			}
  1142  			if postIndex > l {
  1143  				return io.ErrUnexpectedEOF
  1144  			}
  1145  			if m.ValidatorSet == nil {
  1146  				m.ValidatorSet = &types1.ValidatorSet{}
  1147  			}
  1148  			if err := m.ValidatorSet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1149  				return err
  1150  			}
  1151  			iNdEx = postIndex
  1152  		case 2:
  1153  			if wireType != 0 {
  1154  				return fmt.Errorf("proto: wrong wireType = %d for field LastHeightChanged", wireType)
  1155  			}
  1156  			m.LastHeightChanged = 0
  1157  			for shift := uint(0); ; shift += 7 {
  1158  				if shift >= 64 {
  1159  					return ErrIntOverflowTypes
  1160  				}
  1161  				if iNdEx >= l {
  1162  					return io.ErrUnexpectedEOF
  1163  				}
  1164  				b := dAtA[iNdEx]
  1165  				iNdEx++
  1166  				m.LastHeightChanged |= int64(b&0x7F) << shift
  1167  				if b < 0x80 {
  1168  					break
  1169  				}
  1170  			}
  1171  		default:
  1172  			iNdEx = preIndex
  1173  			skippy, err := skipTypes(dAtA[iNdEx:])
  1174  			if err != nil {
  1175  				return err
  1176  			}
  1177  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1178  				return ErrInvalidLengthTypes
  1179  			}
  1180  			if (iNdEx + skippy) > l {
  1181  				return io.ErrUnexpectedEOF
  1182  			}
  1183  			iNdEx += skippy
  1184  		}
  1185  	}
  1186  
  1187  	if iNdEx > l {
  1188  		return io.ErrUnexpectedEOF
  1189  	}
  1190  	return nil
  1191  }
  1192  func (m *ConsensusParamsInfo) Unmarshal(dAtA []byte) error {
  1193  	l := len(dAtA)
  1194  	iNdEx := 0
  1195  	for iNdEx < l {
  1196  		preIndex := iNdEx
  1197  		var wire uint64
  1198  		for shift := uint(0); ; shift += 7 {
  1199  			if shift >= 64 {
  1200  				return ErrIntOverflowTypes
  1201  			}
  1202  			if iNdEx >= l {
  1203  				return io.ErrUnexpectedEOF
  1204  			}
  1205  			b := dAtA[iNdEx]
  1206  			iNdEx++
  1207  			wire |= uint64(b&0x7F) << shift
  1208  			if b < 0x80 {
  1209  				break
  1210  			}
  1211  		}
  1212  		fieldNum := int32(wire >> 3)
  1213  		wireType := int(wire & 0x7)
  1214  		if wireType == 4 {
  1215  			return fmt.Errorf("proto: ConsensusParamsInfo: wiretype end group for non-group")
  1216  		}
  1217  		if fieldNum <= 0 {
  1218  			return fmt.Errorf("proto: ConsensusParamsInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  1219  		}
  1220  		switch fieldNum {
  1221  		case 1:
  1222  			if wireType != 2 {
  1223  				return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType)
  1224  			}
  1225  			var msglen int
  1226  			for shift := uint(0); ; shift += 7 {
  1227  				if shift >= 64 {
  1228  					return ErrIntOverflowTypes
  1229  				}
  1230  				if iNdEx >= l {
  1231  					return io.ErrUnexpectedEOF
  1232  				}
  1233  				b := dAtA[iNdEx]
  1234  				iNdEx++
  1235  				msglen |= int(b&0x7F) << shift
  1236  				if b < 0x80 {
  1237  					break
  1238  				}
  1239  			}
  1240  			if msglen < 0 {
  1241  				return ErrInvalidLengthTypes
  1242  			}
  1243  			postIndex := iNdEx + msglen
  1244  			if postIndex < 0 {
  1245  				return ErrInvalidLengthTypes
  1246  			}
  1247  			if postIndex > l {
  1248  				return io.ErrUnexpectedEOF
  1249  			}
  1250  			if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1251  				return err
  1252  			}
  1253  			iNdEx = postIndex
  1254  		case 2:
  1255  			if wireType != 0 {
  1256  				return fmt.Errorf("proto: wrong wireType = %d for field LastHeightChanged", wireType)
  1257  			}
  1258  			m.LastHeightChanged = 0
  1259  			for shift := uint(0); ; shift += 7 {
  1260  				if shift >= 64 {
  1261  					return ErrIntOverflowTypes
  1262  				}
  1263  				if iNdEx >= l {
  1264  					return io.ErrUnexpectedEOF
  1265  				}
  1266  				b := dAtA[iNdEx]
  1267  				iNdEx++
  1268  				m.LastHeightChanged |= int64(b&0x7F) << shift
  1269  				if b < 0x80 {
  1270  					break
  1271  				}
  1272  			}
  1273  		default:
  1274  			iNdEx = preIndex
  1275  			skippy, err := skipTypes(dAtA[iNdEx:])
  1276  			if err != nil {
  1277  				return err
  1278  			}
  1279  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1280  				return ErrInvalidLengthTypes
  1281  			}
  1282  			if (iNdEx + skippy) > l {
  1283  				return io.ErrUnexpectedEOF
  1284  			}
  1285  			iNdEx += skippy
  1286  		}
  1287  	}
  1288  
  1289  	if iNdEx > l {
  1290  		return io.ErrUnexpectedEOF
  1291  	}
  1292  	return nil
  1293  }
  1294  func (m *Version) Unmarshal(dAtA []byte) error {
  1295  	l := len(dAtA)
  1296  	iNdEx := 0
  1297  	for iNdEx < l {
  1298  		preIndex := iNdEx
  1299  		var wire uint64
  1300  		for shift := uint(0); ; shift += 7 {
  1301  			if shift >= 64 {
  1302  				return ErrIntOverflowTypes
  1303  			}
  1304  			if iNdEx >= l {
  1305  				return io.ErrUnexpectedEOF
  1306  			}
  1307  			b := dAtA[iNdEx]
  1308  			iNdEx++
  1309  			wire |= uint64(b&0x7F) << shift
  1310  			if b < 0x80 {
  1311  				break
  1312  			}
  1313  		}
  1314  		fieldNum := int32(wire >> 3)
  1315  		wireType := int(wire & 0x7)
  1316  		if wireType == 4 {
  1317  			return fmt.Errorf("proto: Version: wiretype end group for non-group")
  1318  		}
  1319  		if fieldNum <= 0 {
  1320  			return fmt.Errorf("proto: Version: illegal tag %d (wire type %d)", fieldNum, wire)
  1321  		}
  1322  		switch fieldNum {
  1323  		case 1:
  1324  			if wireType != 2 {
  1325  				return fmt.Errorf("proto: wrong wireType = %d for field Consensus", wireType)
  1326  			}
  1327  			var msglen int
  1328  			for shift := uint(0); ; shift += 7 {
  1329  				if shift >= 64 {
  1330  					return ErrIntOverflowTypes
  1331  				}
  1332  				if iNdEx >= l {
  1333  					return io.ErrUnexpectedEOF
  1334  				}
  1335  				b := dAtA[iNdEx]
  1336  				iNdEx++
  1337  				msglen |= int(b&0x7F) << shift
  1338  				if b < 0x80 {
  1339  					break
  1340  				}
  1341  			}
  1342  			if msglen < 0 {
  1343  				return ErrInvalidLengthTypes
  1344  			}
  1345  			postIndex := iNdEx + msglen
  1346  			if postIndex < 0 {
  1347  				return ErrInvalidLengthTypes
  1348  			}
  1349  			if postIndex > l {
  1350  				return io.ErrUnexpectedEOF
  1351  			}
  1352  			if err := m.Consensus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1353  				return err
  1354  			}
  1355  			iNdEx = postIndex
  1356  		case 2:
  1357  			if wireType != 2 {
  1358  				return fmt.Errorf("proto: wrong wireType = %d for field Software", wireType)
  1359  			}
  1360  			var stringLen uint64
  1361  			for shift := uint(0); ; shift += 7 {
  1362  				if shift >= 64 {
  1363  					return ErrIntOverflowTypes
  1364  				}
  1365  				if iNdEx >= l {
  1366  					return io.ErrUnexpectedEOF
  1367  				}
  1368  				b := dAtA[iNdEx]
  1369  				iNdEx++
  1370  				stringLen |= uint64(b&0x7F) << shift
  1371  				if b < 0x80 {
  1372  					break
  1373  				}
  1374  			}
  1375  			intStringLen := int(stringLen)
  1376  			if intStringLen < 0 {
  1377  				return ErrInvalidLengthTypes
  1378  			}
  1379  			postIndex := iNdEx + intStringLen
  1380  			if postIndex < 0 {
  1381  				return ErrInvalidLengthTypes
  1382  			}
  1383  			if postIndex > l {
  1384  				return io.ErrUnexpectedEOF
  1385  			}
  1386  			m.Software = string(dAtA[iNdEx:postIndex])
  1387  			iNdEx = postIndex
  1388  		default:
  1389  			iNdEx = preIndex
  1390  			skippy, err := skipTypes(dAtA[iNdEx:])
  1391  			if err != nil {
  1392  				return err
  1393  			}
  1394  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1395  				return ErrInvalidLengthTypes
  1396  			}
  1397  			if (iNdEx + skippy) > l {
  1398  				return io.ErrUnexpectedEOF
  1399  			}
  1400  			iNdEx += skippy
  1401  		}
  1402  	}
  1403  
  1404  	if iNdEx > l {
  1405  		return io.ErrUnexpectedEOF
  1406  	}
  1407  	return nil
  1408  }
  1409  func (m *State) Unmarshal(dAtA []byte) error {
  1410  	l := len(dAtA)
  1411  	iNdEx := 0
  1412  	for iNdEx < l {
  1413  		preIndex := iNdEx
  1414  		var wire uint64
  1415  		for shift := uint(0); ; shift += 7 {
  1416  			if shift >= 64 {
  1417  				return ErrIntOverflowTypes
  1418  			}
  1419  			if iNdEx >= l {
  1420  				return io.ErrUnexpectedEOF
  1421  			}
  1422  			b := dAtA[iNdEx]
  1423  			iNdEx++
  1424  			wire |= uint64(b&0x7F) << shift
  1425  			if b < 0x80 {
  1426  				break
  1427  			}
  1428  		}
  1429  		fieldNum := int32(wire >> 3)
  1430  		wireType := int(wire & 0x7)
  1431  		if wireType == 4 {
  1432  			return fmt.Errorf("proto: State: wiretype end group for non-group")
  1433  		}
  1434  		if fieldNum <= 0 {
  1435  			return fmt.Errorf("proto: State: illegal tag %d (wire type %d)", fieldNum, wire)
  1436  		}
  1437  		switch fieldNum {
  1438  		case 1:
  1439  			if wireType != 2 {
  1440  				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  1441  			}
  1442  			var msglen int
  1443  			for shift := uint(0); ; shift += 7 {
  1444  				if shift >= 64 {
  1445  					return ErrIntOverflowTypes
  1446  				}
  1447  				if iNdEx >= l {
  1448  					return io.ErrUnexpectedEOF
  1449  				}
  1450  				b := dAtA[iNdEx]
  1451  				iNdEx++
  1452  				msglen |= int(b&0x7F) << shift
  1453  				if b < 0x80 {
  1454  					break
  1455  				}
  1456  			}
  1457  			if msglen < 0 {
  1458  				return ErrInvalidLengthTypes
  1459  			}
  1460  			postIndex := iNdEx + msglen
  1461  			if postIndex < 0 {
  1462  				return ErrInvalidLengthTypes
  1463  			}
  1464  			if postIndex > l {
  1465  				return io.ErrUnexpectedEOF
  1466  			}
  1467  			if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1468  				return err
  1469  			}
  1470  			iNdEx = postIndex
  1471  		case 2:
  1472  			if wireType != 2 {
  1473  				return fmt.Errorf("proto: wrong wireType = %d for field ChainID", wireType)
  1474  			}
  1475  			var stringLen uint64
  1476  			for shift := uint(0); ; shift += 7 {
  1477  				if shift >= 64 {
  1478  					return ErrIntOverflowTypes
  1479  				}
  1480  				if iNdEx >= l {
  1481  					return io.ErrUnexpectedEOF
  1482  				}
  1483  				b := dAtA[iNdEx]
  1484  				iNdEx++
  1485  				stringLen |= uint64(b&0x7F) << shift
  1486  				if b < 0x80 {
  1487  					break
  1488  				}
  1489  			}
  1490  			intStringLen := int(stringLen)
  1491  			if intStringLen < 0 {
  1492  				return ErrInvalidLengthTypes
  1493  			}
  1494  			postIndex := iNdEx + intStringLen
  1495  			if postIndex < 0 {
  1496  				return ErrInvalidLengthTypes
  1497  			}
  1498  			if postIndex > l {
  1499  				return io.ErrUnexpectedEOF
  1500  			}
  1501  			m.ChainID = string(dAtA[iNdEx:postIndex])
  1502  			iNdEx = postIndex
  1503  		case 3:
  1504  			if wireType != 0 {
  1505  				return fmt.Errorf("proto: wrong wireType = %d for field LastBlockHeight", wireType)
  1506  			}
  1507  			m.LastBlockHeight = 0
  1508  			for shift := uint(0); ; shift += 7 {
  1509  				if shift >= 64 {
  1510  					return ErrIntOverflowTypes
  1511  				}
  1512  				if iNdEx >= l {
  1513  					return io.ErrUnexpectedEOF
  1514  				}
  1515  				b := dAtA[iNdEx]
  1516  				iNdEx++
  1517  				m.LastBlockHeight |= int64(b&0x7F) << shift
  1518  				if b < 0x80 {
  1519  					break
  1520  				}
  1521  			}
  1522  		case 4:
  1523  			if wireType != 2 {
  1524  				return fmt.Errorf("proto: wrong wireType = %d for field LastBlockID", wireType)
  1525  			}
  1526  			var msglen int
  1527  			for shift := uint(0); ; shift += 7 {
  1528  				if shift >= 64 {
  1529  					return ErrIntOverflowTypes
  1530  				}
  1531  				if iNdEx >= l {
  1532  					return io.ErrUnexpectedEOF
  1533  				}
  1534  				b := dAtA[iNdEx]
  1535  				iNdEx++
  1536  				msglen |= int(b&0x7F) << shift
  1537  				if b < 0x80 {
  1538  					break
  1539  				}
  1540  			}
  1541  			if msglen < 0 {
  1542  				return ErrInvalidLengthTypes
  1543  			}
  1544  			postIndex := iNdEx + msglen
  1545  			if postIndex < 0 {
  1546  				return ErrInvalidLengthTypes
  1547  			}
  1548  			if postIndex > l {
  1549  				return io.ErrUnexpectedEOF
  1550  			}
  1551  			if err := m.LastBlockID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1552  				return err
  1553  			}
  1554  			iNdEx = postIndex
  1555  		case 5:
  1556  			if wireType != 2 {
  1557  				return fmt.Errorf("proto: wrong wireType = %d for field LastBlockTime", wireType)
  1558  			}
  1559  			var msglen int
  1560  			for shift := uint(0); ; shift += 7 {
  1561  				if shift >= 64 {
  1562  					return ErrIntOverflowTypes
  1563  				}
  1564  				if iNdEx >= l {
  1565  					return io.ErrUnexpectedEOF
  1566  				}
  1567  				b := dAtA[iNdEx]
  1568  				iNdEx++
  1569  				msglen |= int(b&0x7F) << shift
  1570  				if b < 0x80 {
  1571  					break
  1572  				}
  1573  			}
  1574  			if msglen < 0 {
  1575  				return ErrInvalidLengthTypes
  1576  			}
  1577  			postIndex := iNdEx + msglen
  1578  			if postIndex < 0 {
  1579  				return ErrInvalidLengthTypes
  1580  			}
  1581  			if postIndex > l {
  1582  				return io.ErrUnexpectedEOF
  1583  			}
  1584  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.LastBlockTime, dAtA[iNdEx:postIndex]); err != nil {
  1585  				return err
  1586  			}
  1587  			iNdEx = postIndex
  1588  		case 6:
  1589  			if wireType != 2 {
  1590  				return fmt.Errorf("proto: wrong wireType = %d for field NextValidators", wireType)
  1591  			}
  1592  			var msglen int
  1593  			for shift := uint(0); ; shift += 7 {
  1594  				if shift >= 64 {
  1595  					return ErrIntOverflowTypes
  1596  				}
  1597  				if iNdEx >= l {
  1598  					return io.ErrUnexpectedEOF
  1599  				}
  1600  				b := dAtA[iNdEx]
  1601  				iNdEx++
  1602  				msglen |= int(b&0x7F) << shift
  1603  				if b < 0x80 {
  1604  					break
  1605  				}
  1606  			}
  1607  			if msglen < 0 {
  1608  				return ErrInvalidLengthTypes
  1609  			}
  1610  			postIndex := iNdEx + msglen
  1611  			if postIndex < 0 {
  1612  				return ErrInvalidLengthTypes
  1613  			}
  1614  			if postIndex > l {
  1615  				return io.ErrUnexpectedEOF
  1616  			}
  1617  			if m.NextValidators == nil {
  1618  				m.NextValidators = &types1.ValidatorSet{}
  1619  			}
  1620  			if err := m.NextValidators.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1621  				return err
  1622  			}
  1623  			iNdEx = postIndex
  1624  		case 7:
  1625  			if wireType != 2 {
  1626  				return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType)
  1627  			}
  1628  			var msglen int
  1629  			for shift := uint(0); ; shift += 7 {
  1630  				if shift >= 64 {
  1631  					return ErrIntOverflowTypes
  1632  				}
  1633  				if iNdEx >= l {
  1634  					return io.ErrUnexpectedEOF
  1635  				}
  1636  				b := dAtA[iNdEx]
  1637  				iNdEx++
  1638  				msglen |= int(b&0x7F) << shift
  1639  				if b < 0x80 {
  1640  					break
  1641  				}
  1642  			}
  1643  			if msglen < 0 {
  1644  				return ErrInvalidLengthTypes
  1645  			}
  1646  			postIndex := iNdEx + msglen
  1647  			if postIndex < 0 {
  1648  				return ErrInvalidLengthTypes
  1649  			}
  1650  			if postIndex > l {
  1651  				return io.ErrUnexpectedEOF
  1652  			}
  1653  			if m.Validators == nil {
  1654  				m.Validators = &types1.ValidatorSet{}
  1655  			}
  1656  			if err := m.Validators.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1657  				return err
  1658  			}
  1659  			iNdEx = postIndex
  1660  		case 8:
  1661  			if wireType != 2 {
  1662  				return fmt.Errorf("proto: wrong wireType = %d for field LastValidators", wireType)
  1663  			}
  1664  			var msglen int
  1665  			for shift := uint(0); ; shift += 7 {
  1666  				if shift >= 64 {
  1667  					return ErrIntOverflowTypes
  1668  				}
  1669  				if iNdEx >= l {
  1670  					return io.ErrUnexpectedEOF
  1671  				}
  1672  				b := dAtA[iNdEx]
  1673  				iNdEx++
  1674  				msglen |= int(b&0x7F) << shift
  1675  				if b < 0x80 {
  1676  					break
  1677  				}
  1678  			}
  1679  			if msglen < 0 {
  1680  				return ErrInvalidLengthTypes
  1681  			}
  1682  			postIndex := iNdEx + msglen
  1683  			if postIndex < 0 {
  1684  				return ErrInvalidLengthTypes
  1685  			}
  1686  			if postIndex > l {
  1687  				return io.ErrUnexpectedEOF
  1688  			}
  1689  			if m.LastValidators == nil {
  1690  				m.LastValidators = &types1.ValidatorSet{}
  1691  			}
  1692  			if err := m.LastValidators.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1693  				return err
  1694  			}
  1695  			iNdEx = postIndex
  1696  		case 9:
  1697  			if wireType != 0 {
  1698  				return fmt.Errorf("proto: wrong wireType = %d for field LastHeightValidatorsChanged", wireType)
  1699  			}
  1700  			m.LastHeightValidatorsChanged = 0
  1701  			for shift := uint(0); ; shift += 7 {
  1702  				if shift >= 64 {
  1703  					return ErrIntOverflowTypes
  1704  				}
  1705  				if iNdEx >= l {
  1706  					return io.ErrUnexpectedEOF
  1707  				}
  1708  				b := dAtA[iNdEx]
  1709  				iNdEx++
  1710  				m.LastHeightValidatorsChanged |= int64(b&0x7F) << shift
  1711  				if b < 0x80 {
  1712  					break
  1713  				}
  1714  			}
  1715  		case 10:
  1716  			if wireType != 2 {
  1717  				return fmt.Errorf("proto: wrong wireType = %d for field ConsensusParams", wireType)
  1718  			}
  1719  			var msglen int
  1720  			for shift := uint(0); ; shift += 7 {
  1721  				if shift >= 64 {
  1722  					return ErrIntOverflowTypes
  1723  				}
  1724  				if iNdEx >= l {
  1725  					return io.ErrUnexpectedEOF
  1726  				}
  1727  				b := dAtA[iNdEx]
  1728  				iNdEx++
  1729  				msglen |= int(b&0x7F) << shift
  1730  				if b < 0x80 {
  1731  					break
  1732  				}
  1733  			}
  1734  			if msglen < 0 {
  1735  				return ErrInvalidLengthTypes
  1736  			}
  1737  			postIndex := iNdEx + msglen
  1738  			if postIndex < 0 {
  1739  				return ErrInvalidLengthTypes
  1740  			}
  1741  			if postIndex > l {
  1742  				return io.ErrUnexpectedEOF
  1743  			}
  1744  			if err := m.ConsensusParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1745  				return err
  1746  			}
  1747  			iNdEx = postIndex
  1748  		case 11:
  1749  			if wireType != 0 {
  1750  				return fmt.Errorf("proto: wrong wireType = %d for field LastHeightConsensusParamsChanged", wireType)
  1751  			}
  1752  			m.LastHeightConsensusParamsChanged = 0
  1753  			for shift := uint(0); ; shift += 7 {
  1754  				if shift >= 64 {
  1755  					return ErrIntOverflowTypes
  1756  				}
  1757  				if iNdEx >= l {
  1758  					return io.ErrUnexpectedEOF
  1759  				}
  1760  				b := dAtA[iNdEx]
  1761  				iNdEx++
  1762  				m.LastHeightConsensusParamsChanged |= int64(b&0x7F) << shift
  1763  				if b < 0x80 {
  1764  					break
  1765  				}
  1766  			}
  1767  		case 12:
  1768  			if wireType != 2 {
  1769  				return fmt.Errorf("proto: wrong wireType = %d for field LastResultsHash", wireType)
  1770  			}
  1771  			var byteLen int
  1772  			for shift := uint(0); ; shift += 7 {
  1773  				if shift >= 64 {
  1774  					return ErrIntOverflowTypes
  1775  				}
  1776  				if iNdEx >= l {
  1777  					return io.ErrUnexpectedEOF
  1778  				}
  1779  				b := dAtA[iNdEx]
  1780  				iNdEx++
  1781  				byteLen |= int(b&0x7F) << shift
  1782  				if b < 0x80 {
  1783  					break
  1784  				}
  1785  			}
  1786  			if byteLen < 0 {
  1787  				return ErrInvalidLengthTypes
  1788  			}
  1789  			postIndex := iNdEx + byteLen
  1790  			if postIndex < 0 {
  1791  				return ErrInvalidLengthTypes
  1792  			}
  1793  			if postIndex > l {
  1794  				return io.ErrUnexpectedEOF
  1795  			}
  1796  			m.LastResultsHash = append(m.LastResultsHash[:0], dAtA[iNdEx:postIndex]...)
  1797  			if m.LastResultsHash == nil {
  1798  				m.LastResultsHash = []byte{}
  1799  			}
  1800  			iNdEx = postIndex
  1801  		case 13:
  1802  			if wireType != 2 {
  1803  				return fmt.Errorf("proto: wrong wireType = %d for field AppHash", wireType)
  1804  			}
  1805  			var byteLen int
  1806  			for shift := uint(0); ; shift += 7 {
  1807  				if shift >= 64 {
  1808  					return ErrIntOverflowTypes
  1809  				}
  1810  				if iNdEx >= l {
  1811  					return io.ErrUnexpectedEOF
  1812  				}
  1813  				b := dAtA[iNdEx]
  1814  				iNdEx++
  1815  				byteLen |= int(b&0x7F) << shift
  1816  				if b < 0x80 {
  1817  					break
  1818  				}
  1819  			}
  1820  			if byteLen < 0 {
  1821  				return ErrInvalidLengthTypes
  1822  			}
  1823  			postIndex := iNdEx + byteLen
  1824  			if postIndex < 0 {
  1825  				return ErrInvalidLengthTypes
  1826  			}
  1827  			if postIndex > l {
  1828  				return io.ErrUnexpectedEOF
  1829  			}
  1830  			m.AppHash = append(m.AppHash[:0], dAtA[iNdEx:postIndex]...)
  1831  			if m.AppHash == nil {
  1832  				m.AppHash = []byte{}
  1833  			}
  1834  			iNdEx = postIndex
  1835  		case 14:
  1836  			if wireType != 0 {
  1837  				return fmt.Errorf("proto: wrong wireType = %d for field InitialHeight", wireType)
  1838  			}
  1839  			m.InitialHeight = 0
  1840  			for shift := uint(0); ; shift += 7 {
  1841  				if shift >= 64 {
  1842  					return ErrIntOverflowTypes
  1843  				}
  1844  				if iNdEx >= l {
  1845  					return io.ErrUnexpectedEOF
  1846  				}
  1847  				b := dAtA[iNdEx]
  1848  				iNdEx++
  1849  				m.InitialHeight |= int64(b&0x7F) << shift
  1850  				if b < 0x80 {
  1851  					break
  1852  				}
  1853  			}
  1854  		default:
  1855  			iNdEx = preIndex
  1856  			skippy, err := skipTypes(dAtA[iNdEx:])
  1857  			if err != nil {
  1858  				return err
  1859  			}
  1860  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1861  				return ErrInvalidLengthTypes
  1862  			}
  1863  			if (iNdEx + skippy) > l {
  1864  				return io.ErrUnexpectedEOF
  1865  			}
  1866  			iNdEx += skippy
  1867  		}
  1868  	}
  1869  
  1870  	if iNdEx > l {
  1871  		return io.ErrUnexpectedEOF
  1872  	}
  1873  	return nil
  1874  }
  1875  func skipTypes(dAtA []byte) (n int, err error) {
  1876  	l := len(dAtA)
  1877  	iNdEx := 0
  1878  	depth := 0
  1879  	for iNdEx < l {
  1880  		var wire uint64
  1881  		for shift := uint(0); ; shift += 7 {
  1882  			if shift >= 64 {
  1883  				return 0, ErrIntOverflowTypes
  1884  			}
  1885  			if iNdEx >= l {
  1886  				return 0, io.ErrUnexpectedEOF
  1887  			}
  1888  			b := dAtA[iNdEx]
  1889  			iNdEx++
  1890  			wire |= (uint64(b) & 0x7F) << shift
  1891  			if b < 0x80 {
  1892  				break
  1893  			}
  1894  		}
  1895  		wireType := int(wire & 0x7)
  1896  		switch wireType {
  1897  		case 0:
  1898  			for shift := uint(0); ; shift += 7 {
  1899  				if shift >= 64 {
  1900  					return 0, ErrIntOverflowTypes
  1901  				}
  1902  				if iNdEx >= l {
  1903  					return 0, io.ErrUnexpectedEOF
  1904  				}
  1905  				iNdEx++
  1906  				if dAtA[iNdEx-1] < 0x80 {
  1907  					break
  1908  				}
  1909  			}
  1910  		case 1:
  1911  			iNdEx += 8
  1912  		case 2:
  1913  			var length int
  1914  			for shift := uint(0); ; shift += 7 {
  1915  				if shift >= 64 {
  1916  					return 0, ErrIntOverflowTypes
  1917  				}
  1918  				if iNdEx >= l {
  1919  					return 0, io.ErrUnexpectedEOF
  1920  				}
  1921  				b := dAtA[iNdEx]
  1922  				iNdEx++
  1923  				length |= (int(b) & 0x7F) << shift
  1924  				if b < 0x80 {
  1925  					break
  1926  				}
  1927  			}
  1928  			if length < 0 {
  1929  				return 0, ErrInvalidLengthTypes
  1930  			}
  1931  			iNdEx += length
  1932  		case 3:
  1933  			depth++
  1934  		case 4:
  1935  			if depth == 0 {
  1936  				return 0, ErrUnexpectedEndOfGroupTypes
  1937  			}
  1938  			depth--
  1939  		case 5:
  1940  			iNdEx += 4
  1941  		default:
  1942  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1943  		}
  1944  		if iNdEx < 0 {
  1945  			return 0, ErrInvalidLengthTypes
  1946  		}
  1947  		if depth == 0 {
  1948  			return iNdEx, nil
  1949  		}
  1950  	}
  1951  	return 0, io.ErrUnexpectedEOF
  1952  }
  1953  
  1954  var (
  1955  	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
  1956  	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
  1957  	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
  1958  )