github.com/devwanda/aphelion-staking@v0.33.9/proto/types/params.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: proto/types/params.proto 3 4 package types 5 6 import ( 7 bytes "bytes" 8 fmt "fmt" 9 _ "github.com/gogo/protobuf/gogoproto" 10 proto "github.com/gogo/protobuf/proto" 11 _ "github.com/golang/protobuf/ptypes/duration" 12 math "math" 13 time "time" 14 ) 15 16 // Reference imports to suppress errors if they are not otherwise used. 17 var _ = proto.Marshal 18 var _ = fmt.Errorf 19 var _ = math.Inf 20 var _ = time.Kitchen 21 22 // This is a compile-time assertion to ensure that this generated file 23 // is compatible with the proto package it is being compiled against. 24 // A compilation error at this line likely means your copy of the 25 // proto package needs to be updated. 26 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 27 28 // ConsensusParams contains consensus critical parameters that determine the 29 // validity of blocks. 30 type ConsensusParams struct { 31 Block BlockParams `protobuf:"bytes,1,opt,name=block,proto3" json:"block"` 32 Evidence EvidenceParams `protobuf:"bytes,2,opt,name=evidence,proto3" json:"evidence"` 33 Validator ValidatorParams `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator"` 34 XXX_NoUnkeyedLiteral struct{} `json:"-"` 35 XXX_unrecognized []byte `json:"-"` 36 XXX_sizecache int32 `json:"-"` 37 } 38 39 func (m *ConsensusParams) Reset() { *m = ConsensusParams{} } 40 func (m *ConsensusParams) String() string { return proto.CompactTextString(m) } 41 func (*ConsensusParams) ProtoMessage() {} 42 func (*ConsensusParams) Descriptor() ([]byte, []int) { 43 return fileDescriptor_95a9f934fa6f056c, []int{0} 44 } 45 func (m *ConsensusParams) XXX_Unmarshal(b []byte) error { 46 return xxx_messageInfo_ConsensusParams.Unmarshal(m, b) 47 } 48 func (m *ConsensusParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 49 return xxx_messageInfo_ConsensusParams.Marshal(b, m, deterministic) 50 } 51 func (m *ConsensusParams) XXX_Merge(src proto.Message) { 52 xxx_messageInfo_ConsensusParams.Merge(m, src) 53 } 54 func (m *ConsensusParams) XXX_Size() int { 55 return xxx_messageInfo_ConsensusParams.Size(m) 56 } 57 func (m *ConsensusParams) XXX_DiscardUnknown() { 58 xxx_messageInfo_ConsensusParams.DiscardUnknown(m) 59 } 60 61 var xxx_messageInfo_ConsensusParams proto.InternalMessageInfo 62 63 func (m *ConsensusParams) GetBlock() BlockParams { 64 if m != nil { 65 return m.Block 66 } 67 return BlockParams{} 68 } 69 70 func (m *ConsensusParams) GetEvidence() EvidenceParams { 71 if m != nil { 72 return m.Evidence 73 } 74 return EvidenceParams{} 75 } 76 77 func (m *ConsensusParams) GetValidator() ValidatorParams { 78 if m != nil { 79 return m.Validator 80 } 81 return ValidatorParams{} 82 } 83 84 // BlockParams contains limits on the block size. 85 type BlockParams struct { 86 // Note: must be greater than 0 87 MaxBytes int64 `protobuf:"varint,1,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"` 88 // Note: must be greater or equal to -1 89 MaxGas int64 `protobuf:"varint,2,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"` 90 // Minimum time increment between consecutive blocks (in milliseconds) 91 // Not exposed to the application. 92 TimeIotaMs int64 `protobuf:"varint,3,opt,name=time_iota_ms,json=timeIotaMs,proto3" json:"time_iota_ms,omitempty"` 93 XXX_NoUnkeyedLiteral struct{} `json:"-"` 94 XXX_unrecognized []byte `json:"-"` 95 XXX_sizecache int32 `json:"-"` 96 } 97 98 func (m *BlockParams) Reset() { *m = BlockParams{} } 99 func (m *BlockParams) String() string { return proto.CompactTextString(m) } 100 func (*BlockParams) ProtoMessage() {} 101 func (*BlockParams) Descriptor() ([]byte, []int) { 102 return fileDescriptor_95a9f934fa6f056c, []int{1} 103 } 104 func (m *BlockParams) XXX_Unmarshal(b []byte) error { 105 return xxx_messageInfo_BlockParams.Unmarshal(m, b) 106 } 107 func (m *BlockParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 108 return xxx_messageInfo_BlockParams.Marshal(b, m, deterministic) 109 } 110 func (m *BlockParams) XXX_Merge(src proto.Message) { 111 xxx_messageInfo_BlockParams.Merge(m, src) 112 } 113 func (m *BlockParams) XXX_Size() int { 114 return xxx_messageInfo_BlockParams.Size(m) 115 } 116 func (m *BlockParams) XXX_DiscardUnknown() { 117 xxx_messageInfo_BlockParams.DiscardUnknown(m) 118 } 119 120 var xxx_messageInfo_BlockParams proto.InternalMessageInfo 121 122 func (m *BlockParams) GetMaxBytes() int64 { 123 if m != nil { 124 return m.MaxBytes 125 } 126 return 0 127 } 128 129 func (m *BlockParams) GetMaxGas() int64 { 130 if m != nil { 131 return m.MaxGas 132 } 133 return 0 134 } 135 136 func (m *BlockParams) GetTimeIotaMs() int64 { 137 if m != nil { 138 return m.TimeIotaMs 139 } 140 return 0 141 } 142 143 // EvidenceParams determine how we handle evidence of malfeasance. 144 type EvidenceParams struct { 145 // Max age of evidence, in blocks. 146 // 147 // The basic formula for calculating this is: MaxAgeDuration / {average block 148 // time}. 149 MaxAgeNumBlocks int64 `protobuf:"varint,1,opt,name=max_age_num_blocks,json=maxAgeNumBlocks,proto3" json:"max_age_num_blocks,omitempty"` 150 // Max age of evidence, in time. 151 // 152 // It should correspond with an app's "unbonding period" or other similar 153 // mechanism for handling [Nothing-At-Stake 154 // attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). 155 MaxAgeDuration time.Duration `protobuf:"bytes,2,opt,name=max_age_duration,json=maxAgeDuration,proto3,stdduration" json:"max_age_duration"` 156 // This sets the maximum number of evidence that can be committed in a single block. 157 // and should fall comfortably under the max block bytes when we consider the size of 158 // each evidence (See MaxEvidenceBytes). The maximum number is MaxEvidencePerBlock. 159 // Default is 50 160 MaxNum uint32 `protobuf:"varint,3,opt,name=max_num,json=maxNum,proto3" json:"max_num,omitempty"` 161 XXX_NoUnkeyedLiteral struct{} `json:"-"` 162 XXX_unrecognized []byte `json:"-"` 163 XXX_sizecache int32 `json:"-"` 164 } 165 166 func (m *EvidenceParams) Reset() { *m = EvidenceParams{} } 167 func (m *EvidenceParams) String() string { return proto.CompactTextString(m) } 168 func (*EvidenceParams) ProtoMessage() {} 169 func (*EvidenceParams) Descriptor() ([]byte, []int) { 170 return fileDescriptor_95a9f934fa6f056c, []int{2} 171 } 172 func (m *EvidenceParams) XXX_Unmarshal(b []byte) error { 173 return xxx_messageInfo_EvidenceParams.Unmarshal(m, b) 174 } 175 func (m *EvidenceParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 176 return xxx_messageInfo_EvidenceParams.Marshal(b, m, deterministic) 177 } 178 func (m *EvidenceParams) XXX_Merge(src proto.Message) { 179 xxx_messageInfo_EvidenceParams.Merge(m, src) 180 } 181 func (m *EvidenceParams) XXX_Size() int { 182 return xxx_messageInfo_EvidenceParams.Size(m) 183 } 184 func (m *EvidenceParams) XXX_DiscardUnknown() { 185 xxx_messageInfo_EvidenceParams.DiscardUnknown(m) 186 } 187 188 var xxx_messageInfo_EvidenceParams proto.InternalMessageInfo 189 190 func (m *EvidenceParams) GetMaxAgeNumBlocks() int64 { 191 if m != nil { 192 return m.MaxAgeNumBlocks 193 } 194 return 0 195 } 196 197 func (m *EvidenceParams) GetMaxAgeDuration() time.Duration { 198 if m != nil { 199 return m.MaxAgeDuration 200 } 201 return 0 202 } 203 204 func (m *EvidenceParams) GetMaxNum() uint32 { 205 if m != nil { 206 return m.MaxNum 207 } 208 return 0 209 } 210 211 // ValidatorParams restrict the public key types validators can use. 212 // NOTE: uses ABCI pubkey naming, not Amino names. 213 type ValidatorParams struct { 214 PubKeyTypes []string `protobuf:"bytes,1,rep,name=pub_key_types,json=pubKeyTypes,proto3" json:"pub_key_types,omitempty"` 215 XXX_NoUnkeyedLiteral struct{} `json:"-"` 216 XXX_unrecognized []byte `json:"-"` 217 XXX_sizecache int32 `json:"-"` 218 } 219 220 func (m *ValidatorParams) Reset() { *m = ValidatorParams{} } 221 func (m *ValidatorParams) String() string { return proto.CompactTextString(m) } 222 func (*ValidatorParams) ProtoMessage() {} 223 func (*ValidatorParams) Descriptor() ([]byte, []int) { 224 return fileDescriptor_95a9f934fa6f056c, []int{3} 225 } 226 func (m *ValidatorParams) XXX_Unmarshal(b []byte) error { 227 return xxx_messageInfo_ValidatorParams.Unmarshal(m, b) 228 } 229 func (m *ValidatorParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 230 return xxx_messageInfo_ValidatorParams.Marshal(b, m, deterministic) 231 } 232 func (m *ValidatorParams) XXX_Merge(src proto.Message) { 233 xxx_messageInfo_ValidatorParams.Merge(m, src) 234 } 235 func (m *ValidatorParams) XXX_Size() int { 236 return xxx_messageInfo_ValidatorParams.Size(m) 237 } 238 func (m *ValidatorParams) XXX_DiscardUnknown() { 239 xxx_messageInfo_ValidatorParams.DiscardUnknown(m) 240 } 241 242 var xxx_messageInfo_ValidatorParams proto.InternalMessageInfo 243 244 func (m *ValidatorParams) GetPubKeyTypes() []string { 245 if m != nil { 246 return m.PubKeyTypes 247 } 248 return nil 249 } 250 251 // HashedParams is a subset of ConsensusParams. 252 // It is amino encoded and hashed into 253 // the Header.ConsensusHash. 254 type HashedParams struct { 255 BlockMaxBytes int64 `protobuf:"varint,1,opt,name=block_max_bytes,json=blockMaxBytes,proto3" json:"block_max_bytes,omitempty"` 256 BlockMaxGas int64 `protobuf:"varint,2,opt,name=block_max_gas,json=blockMaxGas,proto3" json:"block_max_gas,omitempty"` 257 XXX_NoUnkeyedLiteral struct{} `json:"-"` 258 XXX_unrecognized []byte `json:"-"` 259 XXX_sizecache int32 `json:"-"` 260 } 261 262 func (m *HashedParams) Reset() { *m = HashedParams{} } 263 func (m *HashedParams) String() string { return proto.CompactTextString(m) } 264 func (*HashedParams) ProtoMessage() {} 265 func (*HashedParams) Descriptor() ([]byte, []int) { 266 return fileDescriptor_95a9f934fa6f056c, []int{4} 267 } 268 func (m *HashedParams) XXX_Unmarshal(b []byte) error { 269 return xxx_messageInfo_HashedParams.Unmarshal(m, b) 270 } 271 func (m *HashedParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 272 return xxx_messageInfo_HashedParams.Marshal(b, m, deterministic) 273 } 274 func (m *HashedParams) XXX_Merge(src proto.Message) { 275 xxx_messageInfo_HashedParams.Merge(m, src) 276 } 277 func (m *HashedParams) XXX_Size() int { 278 return xxx_messageInfo_HashedParams.Size(m) 279 } 280 func (m *HashedParams) XXX_DiscardUnknown() { 281 xxx_messageInfo_HashedParams.DiscardUnknown(m) 282 } 283 284 var xxx_messageInfo_HashedParams proto.InternalMessageInfo 285 286 func (m *HashedParams) GetBlockMaxBytes() int64 { 287 if m != nil { 288 return m.BlockMaxBytes 289 } 290 return 0 291 } 292 293 func (m *HashedParams) GetBlockMaxGas() int64 { 294 if m != nil { 295 return m.BlockMaxGas 296 } 297 return 0 298 } 299 300 func init() { 301 proto.RegisterType((*ConsensusParams)(nil), "tendermint.proto.types.ConsensusParams") 302 proto.RegisterType((*BlockParams)(nil), "tendermint.proto.types.BlockParams") 303 proto.RegisterType((*EvidenceParams)(nil), "tendermint.proto.types.EvidenceParams") 304 proto.RegisterType((*ValidatorParams)(nil), "tendermint.proto.types.ValidatorParams") 305 proto.RegisterType((*HashedParams)(nil), "tendermint.proto.types.HashedParams") 306 } 307 308 func init() { proto.RegisterFile("proto/types/params.proto", fileDescriptor_95a9f934fa6f056c) } 309 310 var fileDescriptor_95a9f934fa6f056c = []byte{ 311 // 469 bytes of a gzipped FileDescriptorProto 312 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0xd1, 0x6a, 0xd4, 0x40, 313 0x14, 0x35, 0xae, 0xd6, 0xdd, 0xbb, 0xdd, 0xae, 0xcc, 0x83, 0xc6, 0x0a, 0xed, 0x12, 0x61, 0x2d, 314 0x28, 0x09, 0x54, 0x7c, 0x16, 0xa3, 0xd2, 0x4a, 0xd9, 0x22, 0x41, 0x7c,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xbf, 326 0x67, 0xa4, 0x9e, 0xdf, 0x26, 0xf5, 0xc5, 0x01, 0xb7, 0xb4, 0x3a, 0x7e, 0xc0, 0x60, 0xb8, 0x31, 327 0x32, 0x79, 0x0a, 0x03, 0x8e, 0x2b, 0x9a, 0x36, 0x8a, 0x49, 0x63, 0xb5, 0x97, 0xf4, 0x39, 0xae, 328 0xe2, 0xf6, 0x4e, 0x1e, 0xc3, 0x83, 0xb6, 0x99, 0xa3, 0x34, 0x0e, 0x7a, 0xc9, 0x0e, 0xc7, 0xd5, 329 0x09, 0x4a, 0x32, 0x81, 0x5d, 0x55, 0x70, 0x46, 0x0b, 0xa1, 0x90, 0x72, 0x69, 0x86, 0xea, 0x25, 330 0xd0, 0xd6, 0x3e, 0x0a, 0x85, 0x33, 0x19, 0x7c, 0xf7, 0x60, 0x6f, 0xdb, 0x16, 0x79, 0x01, 0xa4, 331 0x55, 0xc3, 0x9c, 0xd1, 0x52, 0x73, 0x6a, 0x52, 0x72, 0x6f, 0x8e, 0x39, 0xae, 0xde, 0xe6, 0xec, 332 0x5c, 0x73, 0x33, 0x9c, 0x24, 0x33, 0x78, 0xe8, 0xc0, 0x6e, 0x59, 0xeb, 0x14, 0x9f, 0x84, 0x76, 333 0x9b, 0xa1, 0xdb, 0x66, 0xf8, 0x7e, 0x0d, 0x88, 0xfb, 0xad, 0xd9, 0x6f, 0xbf, 0x0f, 0xbd, 0x64, 334 0xcf, 0xea, 0xb9, 0x8e, 0x73, 0x52, 0x6a, 0x6e, 0x66, 0x1d, 0x19, 0x27, 0xe7, 0x9a, 0x07, 0xaf, 335 0x61, 0x7c, 0x2d, 0x32, 0x12, 0xc0, 0xa8, 0xd2, 0x29, 0xbd, 0x64, 0x0d, 0x35, 0x99, 0xfa, 0xde, 336 0xa4, 0x77, 0x34, 0x48, 0x86, 0x95, 0x4e, 0xcf, 0x58, 0xf3, 0xb9, 0x2d, 0x05, 0x17, 0xb0, 0x7b, 337 0x8a, 0x72, 0xc1, 0xb2, 0x35, 0x67, 0x0a, 0x63, 0xe3, 0x87, 0x5e, 0x0f, 0x73, 0x64, 0xca, 0x33, 338 0x97, 0x68, 0x00, 0xa3, 0x0e, 0xd7, 0xe5, 0x3a, 0x74, 0xa8, 0x13, 0x94, 0xf1, 0xf1, 0x8f, 0x3f, 339 0x07, 0xde, 0xc5, 0xcb, 0xbc, 0x50, 0x0b, 0x9d, 0x86, 0x73, 0xc1, 0xa3, 0x6e, 0xd7, 0x9b, 0xc7, 340 0x8d, 0xef, 0x92, 0xee, 0x98, 0xcb, 0xab, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x8a, 0x3c, 0x66, 341 0x44, 0x44, 0x03, 0x00, 0x00, 342 } 343 344 func (this *ConsensusParams) Equal(that interface{}) bool { 345 if that == nil { 346 return this == nil 347 } 348 349 that1, ok := that.(*ConsensusParams) 350 if !ok { 351 that2, ok := that.(ConsensusParams) 352 if ok { 353 that1 = &that2 354 } else { 355 return false 356 } 357 } 358 if that1 == nil { 359 return this == nil 360 } else if this == nil { 361 return false 362 } 363 if !this.Block.Equal(&that1.Block) { 364 return false 365 } 366 if !this.Evidence.Equal(&that1.Evidence) { 367 return false 368 } 369 if !this.Validator.Equal(&that1.Validator) { 370 return false 371 } 372 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 373 return false 374 } 375 return true 376 } 377 func (this *BlockParams) Equal(that interface{}) bool { 378 if that == nil { 379 return this == nil 380 } 381 382 that1, ok := that.(*BlockParams) 383 if !ok { 384 that2, ok := that.(BlockParams) 385 if ok { 386 that1 = &that2 387 } else { 388 return false 389 } 390 } 391 if that1 == nil { 392 return this == nil 393 } else if this == nil { 394 return false 395 } 396 if this.MaxBytes != that1.MaxBytes { 397 return false 398 } 399 if this.MaxGas != that1.MaxGas { 400 return false 401 } 402 if this.TimeIotaMs != that1.TimeIotaMs { 403 return false 404 } 405 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 406 return false 407 } 408 return true 409 } 410 func (this *EvidenceParams) Equal(that interface{}) bool { 411 if that == nil { 412 return this == nil 413 } 414 415 that1, ok := that.(*EvidenceParams) 416 if !ok { 417 that2, ok := that.(EvidenceParams) 418 if ok { 419 that1 = &that2 420 } else { 421 return false 422 } 423 } 424 if that1 == nil { 425 return this == nil 426 } else if this == nil { 427 return false 428 } 429 if this.MaxAgeNumBlocks != that1.MaxAgeNumBlocks { 430 return false 431 } 432 if this.MaxAgeDuration != that1.MaxAgeDuration { 433 return false 434 } 435 if this.MaxNum != that1.MaxNum { 436 return false 437 } 438 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 439 return false 440 } 441 return true 442 } 443 func (this *ValidatorParams) Equal(that interface{}) bool { 444 if that == nil { 445 return this == nil 446 } 447 448 that1, ok := that.(*ValidatorParams) 449 if !ok { 450 that2, ok := that.(ValidatorParams) 451 if ok { 452 that1 = &that2 453 } else { 454 return false 455 } 456 } 457 if that1 == nil { 458 return this == nil 459 } else if this == nil { 460 return false 461 } 462 if len(this.PubKeyTypes) != len(that1.PubKeyTypes) { 463 return false 464 } 465 for i := range this.PubKeyTypes { 466 if this.PubKeyTypes[i] != that1.PubKeyTypes[i] { 467 return false 468 } 469 } 470 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 471 return false 472 } 473 return true 474 } 475 func (this *HashedParams) Equal(that interface{}) bool { 476 if that == nil { 477 return this == nil 478 } 479 480 that1, ok := that.(*HashedParams) 481 if !ok { 482 that2, ok := that.(HashedParams) 483 if ok { 484 that1 = &that2 485 } else { 486 return false 487 } 488 } 489 if that1 == nil { 490 return this == nil 491 } else if this == nil { 492 return false 493 } 494 if this.BlockMaxBytes != that1.BlockMaxBytes { 495 return false 496 } 497 if this.BlockMaxGas != that1.BlockMaxGas { 498 return false 499 } 500 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 501 return false 502 } 503 return true 504 }