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