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