github.com/badrootd/nibiru-cometbft@v0.37.5-0.20240307173500-2a75559eee9b/proto/tendermint/types/params.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: tendermint/types/params.proto
     3  
     4  package types
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/cosmos/gogoproto/gogoproto"
     9  	proto "github.com/cosmos/gogoproto/proto"
    10  	github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types"
    11  	_ "github.com/golang/protobuf/ptypes/duration"
    12  	io "io"
    13  	math "math"
    14  	math_bits "math/bits"
    15  	time "time"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  var _ = time.Kitchen
    23  
    24  // This is a compile-time assertion to ensure that this generated file
    25  // is compatible with the proto package it is being compiled against.
    26  // A compilation error at this line likely means your copy of the
    27  // proto package needs to be updated.
    28  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    29  
    30  // ConsensusParams contains consensus critical parameters that determine the
    31  // validity of blocks.
    32  type ConsensusParams struct {
    33  	Block     *BlockParams     `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
    34  	Evidence  *EvidenceParams  `protobuf:"bytes,2,opt,name=evidence,proto3" json:"evidence,omitempty"`
    35  	Validator *ValidatorParams `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"`
    36  	Version   *VersionParams   `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
    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_e12598271a686f57, []int{0}
    44  }
    45  func (m *ConsensusParams) XXX_Unmarshal(b []byte) error {
    46  	return m.Unmarshal(b)
    47  }
    48  func (m *ConsensusParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    49  	if deterministic {
    50  		return xxx_messageInfo_ConsensusParams.Marshal(b, m, deterministic)
    51  	} else {
    52  		b = b[:cap(b)]
    53  		n, err := m.MarshalToSizedBuffer(b)
    54  		if err != nil {
    55  			return nil, err
    56  		}
    57  		return b[:n], nil
    58  	}
    59  }
    60  func (m *ConsensusParams) XXX_Merge(src proto.Message) {
    61  	xxx_messageInfo_ConsensusParams.Merge(m, src)
    62  }
    63  func (m *ConsensusParams) XXX_Size() int {
    64  	return m.Size()
    65  }
    66  func (m *ConsensusParams) XXX_DiscardUnknown() {
    67  	xxx_messageInfo_ConsensusParams.DiscardUnknown(m)
    68  }
    69  
    70  var xxx_messageInfo_ConsensusParams proto.InternalMessageInfo
    71  
    72  func (m *ConsensusParams) GetBlock() *BlockParams {
    73  	if m != nil {
    74  		return m.Block
    75  	}
    76  	return nil
    77  }
    78  
    79  func (m *ConsensusParams) GetEvidence() *EvidenceParams {
    80  	if m != nil {
    81  		return m.Evidence
    82  	}
    83  	return nil
    84  }
    85  
    86  func (m *ConsensusParams) GetValidator() *ValidatorParams {
    87  	if m != nil {
    88  		return m.Validator
    89  	}
    90  	return nil
    91  }
    92  
    93  func (m *ConsensusParams) GetVersion() *VersionParams {
    94  	if m != nil {
    95  		return m.Version
    96  	}
    97  	return nil
    98  }
    99  
   100  // BlockParams contains limits on the block size.
   101  type BlockParams struct {
   102  	// Max block size, in bytes.
   103  	// Note: must be greater than 0
   104  	MaxBytes int64 `protobuf:"varint,1,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"`
   105  	// Max gas per block.
   106  	// Note: must be greater or equal to -1
   107  	MaxGas int64 `protobuf:"varint,2,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"`
   108  }
   109  
   110  func (m *BlockParams) Reset()         { *m = BlockParams{} }
   111  func (m *BlockParams) String() string { return proto.CompactTextString(m) }
   112  func (*BlockParams) ProtoMessage()    {}
   113  func (*BlockParams) Descriptor() ([]byte, []int) {
   114  	return fileDescriptor_e12598271a686f57, []int{1}
   115  }
   116  func (m *BlockParams) XXX_Unmarshal(b []byte) error {
   117  	return m.Unmarshal(b)
   118  }
   119  func (m *BlockParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   120  	if deterministic {
   121  		return xxx_messageInfo_BlockParams.Marshal(b, m, deterministic)
   122  	} else {
   123  		b = b[:cap(b)]
   124  		n, err := m.MarshalToSizedBuffer(b)
   125  		if err != nil {
   126  			return nil, err
   127  		}
   128  		return b[:n], nil
   129  	}
   130  }
   131  func (m *BlockParams) XXX_Merge(src proto.Message) {
   132  	xxx_messageInfo_BlockParams.Merge(m, src)
   133  }
   134  func (m *BlockParams) XXX_Size() int {
   135  	return m.Size()
   136  }
   137  func (m *BlockParams) XXX_DiscardUnknown() {
   138  	xxx_messageInfo_BlockParams.DiscardUnknown(m)
   139  }
   140  
   141  var xxx_messageInfo_BlockParams proto.InternalMessageInfo
   142  
   143  func (m *BlockParams) GetMaxBytes() int64 {
   144  	if m != nil {
   145  		return m.MaxBytes
   146  	}
   147  	return 0
   148  }
   149  
   150  func (m *BlockParams) GetMaxGas() int64 {
   151  	if m != nil {
   152  		return m.MaxGas
   153  	}
   154  	return 0
   155  }
   156  
   157  // EvidenceParams determine how we handle evidence of malfeasance.
   158  type EvidenceParams struct {
   159  	// Max age of evidence, in blocks.
   160  	//
   161  	// The basic formula for calculating this is: MaxAgeDuration / {average block
   162  	// time}.
   163  	MaxAgeNumBlocks int64 `protobuf:"varint,1,opt,name=max_age_num_blocks,json=maxAgeNumBlocks,proto3" json:"max_age_num_blocks,omitempty"`
   164  	// Max age of evidence, in time.
   165  	//
   166  	// It should correspond with an app's "unbonding period" or other similar
   167  	// mechanism for handling [Nothing-At-Stake
   168  	// attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
   169  	MaxAgeDuration time.Duration `protobuf:"bytes,2,opt,name=max_age_duration,json=maxAgeDuration,proto3,stdduration" json:"max_age_duration"`
   170  	// This sets the maximum size of total evidence in bytes that can be committed in a single block.
   171  	// and should fall comfortably under the max block bytes.
   172  	// Default is 1048576 or 1MB
   173  	MaxBytes int64 `protobuf:"varint,3,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"`
   174  }
   175  
   176  func (m *EvidenceParams) Reset()         { *m = EvidenceParams{} }
   177  func (m *EvidenceParams) String() string { return proto.CompactTextString(m) }
   178  func (*EvidenceParams) ProtoMessage()    {}
   179  func (*EvidenceParams) Descriptor() ([]byte, []int) {
   180  	return fileDescriptor_e12598271a686f57, []int{2}
   181  }
   182  func (m *EvidenceParams) XXX_Unmarshal(b []byte) error {
   183  	return m.Unmarshal(b)
   184  }
   185  func (m *EvidenceParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   186  	if deterministic {
   187  		return xxx_messageInfo_EvidenceParams.Marshal(b, m, deterministic)
   188  	} else {
   189  		b = b[:cap(b)]
   190  		n, err := m.MarshalToSizedBuffer(b)
   191  		if err != nil {
   192  			return nil, err
   193  		}
   194  		return b[:n], nil
   195  	}
   196  }
   197  func (m *EvidenceParams) XXX_Merge(src proto.Message) {
   198  	xxx_messageInfo_EvidenceParams.Merge(m, src)
   199  }
   200  func (m *EvidenceParams) XXX_Size() int {
   201  	return m.Size()
   202  }
   203  func (m *EvidenceParams) XXX_DiscardUnknown() {
   204  	xxx_messageInfo_EvidenceParams.DiscardUnknown(m)
   205  }
   206  
   207  var xxx_messageInfo_EvidenceParams proto.InternalMessageInfo
   208  
   209  func (m *EvidenceParams) GetMaxAgeNumBlocks() int64 {
   210  	if m != nil {
   211  		return m.MaxAgeNumBlocks
   212  	}
   213  	return 0
   214  }
   215  
   216  func (m *EvidenceParams) GetMaxAgeDuration() time.Duration {
   217  	if m != nil {
   218  		return m.MaxAgeDuration
   219  	}
   220  	return 0
   221  }
   222  
   223  func (m *EvidenceParams) GetMaxBytes() int64 {
   224  	if m != nil {
   225  		return m.MaxBytes
   226  	}
   227  	return 0
   228  }
   229  
   230  // ValidatorParams restrict the public key types validators can use.
   231  // NOTE: uses ABCI pubkey naming, not Amino names.
   232  type ValidatorParams struct {
   233  	PubKeyTypes []string `protobuf:"bytes,1,rep,name=pub_key_types,json=pubKeyTypes,proto3" json:"pub_key_types,omitempty"`
   234  }
   235  
   236  func (m *ValidatorParams) Reset()         { *m = ValidatorParams{} }
   237  func (m *ValidatorParams) String() string { return proto.CompactTextString(m) }
   238  func (*ValidatorParams) ProtoMessage()    {}
   239  func (*ValidatorParams) Descriptor() ([]byte, []int) {
   240  	return fileDescriptor_e12598271a686f57, []int{3}
   241  }
   242  func (m *ValidatorParams) XXX_Unmarshal(b []byte) error {
   243  	return m.Unmarshal(b)
   244  }
   245  func (m *ValidatorParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   246  	if deterministic {
   247  		return xxx_messageInfo_ValidatorParams.Marshal(b, m, deterministic)
   248  	} else {
   249  		b = b[:cap(b)]
   250  		n, err := m.MarshalToSizedBuffer(b)
   251  		if err != nil {
   252  			return nil, err
   253  		}
   254  		return b[:n], nil
   255  	}
   256  }
   257  func (m *ValidatorParams) XXX_Merge(src proto.Message) {
   258  	xxx_messageInfo_ValidatorParams.Merge(m, src)
   259  }
   260  func (m *ValidatorParams) XXX_Size() int {
   261  	return m.Size()
   262  }
   263  func (m *ValidatorParams) XXX_DiscardUnknown() {
   264  	xxx_messageInfo_ValidatorParams.DiscardUnknown(m)
   265  }
   266  
   267  var xxx_messageInfo_ValidatorParams proto.InternalMessageInfo
   268  
   269  func (m *ValidatorParams) GetPubKeyTypes() []string {
   270  	if m != nil {
   271  		return m.PubKeyTypes
   272  	}
   273  	return nil
   274  }
   275  
   276  // VersionParams contains the ABCI application version.
   277  type VersionParams struct {
   278  	App uint64 `protobuf:"varint,1,opt,name=app,proto3" json:"app,omitempty"`
   279  }
   280  
   281  func (m *VersionParams) Reset()         { *m = VersionParams{} }
   282  func (m *VersionParams) String() string { return proto.CompactTextString(m) }
   283  func (*VersionParams) ProtoMessage()    {}
   284  func (*VersionParams) Descriptor() ([]byte, []int) {
   285  	return fileDescriptor_e12598271a686f57, []int{4}
   286  }
   287  func (m *VersionParams) XXX_Unmarshal(b []byte) error {
   288  	return m.Unmarshal(b)
   289  }
   290  func (m *VersionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   291  	if deterministic {
   292  		return xxx_messageInfo_VersionParams.Marshal(b, m, deterministic)
   293  	} else {
   294  		b = b[:cap(b)]
   295  		n, err := m.MarshalToSizedBuffer(b)
   296  		if err != nil {
   297  			return nil, err
   298  		}
   299  		return b[:n], nil
   300  	}
   301  }
   302  func (m *VersionParams) XXX_Merge(src proto.Message) {
   303  	xxx_messageInfo_VersionParams.Merge(m, src)
   304  }
   305  func (m *VersionParams) XXX_Size() int {
   306  	return m.Size()
   307  }
   308  func (m *VersionParams) XXX_DiscardUnknown() {
   309  	xxx_messageInfo_VersionParams.DiscardUnknown(m)
   310  }
   311  
   312  var xxx_messageInfo_VersionParams proto.InternalMessageInfo
   313  
   314  func (m *VersionParams) GetApp() uint64 {
   315  	if m != nil {
   316  		return m.App
   317  	}
   318  	return 0
   319  }
   320  
   321  // HashedParams is a subset of ConsensusParams.
   322  //
   323  // It is hashed into the Header.ConsensusHash.
   324  type HashedParams struct {
   325  	BlockMaxBytes int64 `protobuf:"varint,1,opt,name=block_max_bytes,json=blockMaxBytes,proto3" json:"block_max_bytes,omitempty"`
   326  	BlockMaxGas   int64 `protobuf:"varint,2,opt,name=block_max_gas,json=blockMaxGas,proto3" json:"block_max_gas,omitempty"`
   327  }
   328  
   329  func (m *HashedParams) Reset()         { *m = HashedParams{} }
   330  func (m *HashedParams) String() string { return proto.CompactTextString(m) }
   331  func (*HashedParams) ProtoMessage()    {}
   332  func (*HashedParams) Descriptor() ([]byte, []int) {
   333  	return fileDescriptor_e12598271a686f57, []int{5}
   334  }
   335  func (m *HashedParams) XXX_Unmarshal(b []byte) error {
   336  	return m.Unmarshal(b)
   337  }
   338  func (m *HashedParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   339  	if deterministic {
   340  		return xxx_messageInfo_HashedParams.Marshal(b, m, deterministic)
   341  	} else {
   342  		b = b[:cap(b)]
   343  		n, err := m.MarshalToSizedBuffer(b)
   344  		if err != nil {
   345  			return nil, err
   346  		}
   347  		return b[:n], nil
   348  	}
   349  }
   350  func (m *HashedParams) XXX_Merge(src proto.Message) {
   351  	xxx_messageInfo_HashedParams.Merge(m, src)
   352  }
   353  func (m *HashedParams) XXX_Size() int {
   354  	return m.Size()
   355  }
   356  func (m *HashedParams) XXX_DiscardUnknown() {
   357  	xxx_messageInfo_HashedParams.DiscardUnknown(m)
   358  }
   359  
   360  var xxx_messageInfo_HashedParams proto.InternalMessageInfo
   361  
   362  func (m *HashedParams) GetBlockMaxBytes() int64 {
   363  	if m != nil {
   364  		return m.BlockMaxBytes
   365  	}
   366  	return 0
   367  }
   368  
   369  func (m *HashedParams) GetBlockMaxGas() int64 {
   370  	if m != nil {
   371  		return m.BlockMaxGas
   372  	}
   373  	return 0
   374  }
   375  
   376  func init() {
   377  	proto.RegisterType((*ConsensusParams)(nil), "tendermint.types.ConsensusParams")
   378  	proto.RegisterType((*BlockParams)(nil), "tendermint.types.BlockParams")
   379  	proto.RegisterType((*EvidenceParams)(nil), "tendermint.types.EvidenceParams")
   380  	proto.RegisterType((*ValidatorParams)(nil), "tendermint.types.ValidatorParams")
   381  	proto.RegisterType((*VersionParams)(nil), "tendermint.types.VersionParams")
   382  	proto.RegisterType((*HashedParams)(nil), "tendermint.types.HashedParams")
   383  }
   384  
   385  func init() { proto.RegisterFile("tendermint/types/params.proto", fileDescriptor_e12598271a686f57) }
   386  
   387  var fileDescriptor_e12598271a686f57 = []byte{
   388  	// 515 bytes of a gzipped FileDescriptorProto
   389  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0x4f, 0x6f, 0xd3, 0x30,
   390  	0x18, 0xc6, 0xeb, 0xa5, 0x6c, 0xed, 0x5b, 0xba, 0x56, 0x16, 0x12, 0x61, 0x68, 0x49, 0xc9, 0x01,
   391  	0x4d, 0x9a, 0x94, 0x48, 0xf4, 0x04, 0x42, 0x9a, 0x28, 0xa0, 0xf1, 0x47, 0x43, 0x10, 0x21, 0x0e,
   392  	0xbb, 0x44, 0x4e, 0xe3, 0x65, 0xd1, 0xea, 0x38, 0x8a, 0x9d, 0xaa, 0xbd, 0xf1, 0x11, 0x38, 0x72,
   393  	0xdc, 0x11, 0xbe, 0x01, 0x1f, 0x61, 0xc7, 0x1d, 0x39, 0x01, 0x6a, 0x2f, 0x7c, 0x0c, 0x14, 0x27,
   394  	0x21, 0x6b, 0xb7, 0x9b, 0xe3, 0xe7, 0xf7, 0xd8, 0x79, 0x9e, 0x57, 0x86, 0x5d, 0x49, 0xe3, 0x80,
   395  	0xa6, 0x2c, 0x8a, 0xa5, 0x23, 0xe7, 0x09, 0x15, 0x4e, 0x42, 0x52, 0xc2, 0x84, 0x9d, 0xa4, 0x5c,
   396  	0x72, 0xdc, 0xaf, 0x65, 0x5b, 0xc9, 0x3b, 0x77, 0x42, 0x1e, 0x72, 0x25, 0x3a, 0xf9, 0xaa, 0xe0,
   397  	0x76, 0x8c, 0x90, 0xf3, 0x70, 0x42, 0x1d, 0xf5, 0xe5, 0x67, 0x27, 0x4e, 0x90, 0xa5, 0x44, 0x46,
   398  	0x3c, 0x2e, 0x74, 0xeb, 0xf3, 0x06, 0xf4, 0x9e, 0xf3, 0x58, 0xd0, 0x58, 0x64, 0xe2, 0xbd, 0xba,
   399  	0x01, 0x0f, 0xe1, 0x96, 0x3f, 0xe1, 0xe3, 0x33, 0x1d, 0x0d, 0xd0, 0x5e, 0xe7, 0xd1, 0xae, 0xbd,
   400  	0x7e, 0x97, 0x3d, 0xca, 0xe5, 0x82, 0x76, 0x0b, 0x16, 0x3f, 0x85, 0x16, 0x9d, 0x46, 0x01, 0x8d,
   401  	0xc7, 0x54, 0xdf, 0x50, 0xbe, 0xc1, 0x75, 0xdf, 0xcb, 0x92, 0x28, 0xad, 0xff, 0x1d, 0xf8, 0x00,
   402  	0xda, 0x53, 0x32, 0x89, 0x02, 0x22, 0x79, 0xaa, 0x6b, 0xca, 0xfe, 0xe0, 0xba, 0xfd, 0x53, 0x85,
   403  	0x94, 0xfe, 0xda, 0x83, 0x1f, 0xc3, 0xd6, 0x94, 0xa6, 0x22, 0xe2, 0xb1, 0xde, 0x54, 0x76, 0xf3,
   404  	0x06, 0x7b, 0x01, 0x94, 0xe6, 0x8a, 0xb7, 0x5e, 0x43, 0xe7, 0x4a, 0x1e, 0x7c, 0x1f, 0xda, 0x8c,
   405  	0xcc, 0x3c, 0x7f, 0x2e, 0xa9, 0x50, 0x0d, 0x68, 0x6e, 0x8b, 0x91, 0xd9, 0x28, 0xff, 0xc6, 0x77,
   406  	0x61, 0x2b, 0x17, 0x43, 0x22, 0x54, 0x48, 0xcd, 0xdd, 0x64, 0x64, 0x76, 0x48, 0xc4, 0x9b, 0x66,
   407  	0x4b, 0xeb, 0x37, 0xad, 0xef, 0x08, 0xb6, 0x57, 0x33, 0xe2, 0x7d, 0xc0, 0xb9, 0x83, 0x84, 0xd4,
   408  	0x8b, 0x33, 0xe6, 0xa9, 0xb2, 0xaa, 0x73, 0x7b, 0x8c, 0xcc, 0x9e, 0x85, 0xf4, 0x5d, 0xc6, 0xd4,
   409  	0x0f, 0x08, 0x7c, 0x04, 0xfd, 0x0a, 0xae, 0xe6, 0x54, 0x96, 0x79, 0xcf, 0x2e, 0x06, 0x69, 0x57,
   410  	0x83, 0xb4, 0x5f, 0x94, 0xc0, 0xa8, 0x75, 0xf1, 0xcb, 0x6c, 0x7c, 0xfd, 0x6d, 0x22, 0x77, 0xbb,
   411  	0x38, 0xaf, 0x52, 0x56, 0xa3, 0x68, 0xab, 0x51, 0xac, 0x03, 0xe8, 0xad, 0xf5, 0x89, 0x2d, 0xe8,
   412  	0x26, 0x99, 0xef, 0x9d, 0xd1, 0xb9, 0xa7, 0x1a, 0xd3, 0xd1, 0x40, 0xdb, 0x6b, 0xbb, 0x9d, 0x24,
   413  	0xf3, 0xdf, 0xd2, 0xf9, 0xc7, 0x7c, 0xeb, 0x49, 0xeb, 0xc7, 0xb9, 0x89, 0xfe, 0x9e, 0x9b, 0xc8,
   414  	0xda, 0x87, 0xee, 0x4a, 0xa3, 0xb8, 0x0f, 0x1a, 0x49, 0x12, 0x95, 0xad, 0xe9, 0xe6, 0xcb, 0x2b,
   415  	0xf0, 0x31, 0xdc, 0x7e, 0x45, 0xc4, 0x29, 0x0d, 0x4a, 0xf6, 0x21, 0xf4, 0x54, 0x15, 0xde, 0x7a,
   416  	0xd7, 0x5d, 0xb5, 0x7d, 0x54, 0x15, 0x6e, 0x41, 0xb7, 0xe6, 0xea, 0xda, 0x3b, 0x15, 0x75, 0x48,
   417  	0xc4, 0xe8, 0xc3, 0xb7, 0x85, 0x81, 0x2e, 0x16, 0x06, 0xba, 0x5c, 0x18, 0xe8, 0xcf, 0xc2, 0x40,
   418  	0x5f, 0x96, 0x46, 0xe3, 0x72, 0x69, 0x34, 0x7e, 0x2e, 0x8d, 0xc6, 0xf1, 0x30, 0x8c, 0xe4, 0x69,
   419  	0xe6, 0xdb, 0x63, 0xce, 0x9c, 0x31, 0x67, 0x54, 0xfa, 0x27, 0xb2, 0x5e, 0x14, 0x0f, 0x66, 0xfd,
   420  	0xad, 0xf9, 0x9b, 0x6a, 0x7f, 0xf8, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x3c, 0xfc, 0x4b, 0xf8, 0x86,
   421  	0x03, 0x00, 0x00,
   422  }
   423  
   424  func (this *ConsensusParams) Equal(that interface{}) bool {
   425  	if that == nil {
   426  		return this == nil
   427  	}
   428  
   429  	that1, ok := that.(*ConsensusParams)
   430  	if !ok {
   431  		that2, ok := that.(ConsensusParams)
   432  		if ok {
   433  			that1 = &that2
   434  		} else {
   435  			return false
   436  		}
   437  	}
   438  	if that1 == nil {
   439  		return this == nil
   440  	} else if this == nil {
   441  		return false
   442  	}
   443  	if !this.Block.Equal(that1.Block) {
   444  		return false
   445  	}
   446  	if !this.Evidence.Equal(that1.Evidence) {
   447  		return false
   448  	}
   449  	if !this.Validator.Equal(that1.Validator) {
   450  		return false
   451  	}
   452  	if !this.Version.Equal(that1.Version) {
   453  		return false
   454  	}
   455  	return true
   456  }
   457  func (this *BlockParams) Equal(that interface{}) bool {
   458  	if that == nil {
   459  		return this == nil
   460  	}
   461  
   462  	that1, ok := that.(*BlockParams)
   463  	if !ok {
   464  		that2, ok := that.(BlockParams)
   465  		if ok {
   466  			that1 = &that2
   467  		} else {
   468  			return false
   469  		}
   470  	}
   471  	if that1 == nil {
   472  		return this == nil
   473  	} else if this == nil {
   474  		return false
   475  	}
   476  	if this.MaxBytes != that1.MaxBytes {
   477  		return false
   478  	}
   479  	if this.MaxGas != that1.MaxGas {
   480  		return false
   481  	}
   482  	return true
   483  }
   484  func (this *EvidenceParams) Equal(that interface{}) bool {
   485  	if that == nil {
   486  		return this == nil
   487  	}
   488  
   489  	that1, ok := that.(*EvidenceParams)
   490  	if !ok {
   491  		that2, ok := that.(EvidenceParams)
   492  		if ok {
   493  			that1 = &that2
   494  		} else {
   495  			return false
   496  		}
   497  	}
   498  	if that1 == nil {
   499  		return this == nil
   500  	} else if this == nil {
   501  		return false
   502  	}
   503  	if this.MaxAgeNumBlocks != that1.MaxAgeNumBlocks {
   504  		return false
   505  	}
   506  	if this.MaxAgeDuration != that1.MaxAgeDuration {
   507  		return false
   508  	}
   509  	if this.MaxBytes != that1.MaxBytes {
   510  		return false
   511  	}
   512  	return true
   513  }
   514  func (this *ValidatorParams) Equal(that interface{}) bool {
   515  	if that == nil {
   516  		return this == nil
   517  	}
   518  
   519  	that1, ok := that.(*ValidatorParams)
   520  	if !ok {
   521  		that2, ok := that.(ValidatorParams)
   522  		if ok {
   523  			that1 = &that2
   524  		} else {
   525  			return false
   526  		}
   527  	}
   528  	if that1 == nil {
   529  		return this == nil
   530  	} else if this == nil {
   531  		return false
   532  	}
   533  	if len(this.PubKeyTypes) != len(that1.PubKeyTypes) {
   534  		return false
   535  	}
   536  	for i := range this.PubKeyTypes {
   537  		if this.PubKeyTypes[i] != that1.PubKeyTypes[i] {
   538  			return false
   539  		}
   540  	}
   541  	return true
   542  }
   543  func (this *VersionParams) Equal(that interface{}) bool {
   544  	if that == nil {
   545  		return this == nil
   546  	}
   547  
   548  	that1, ok := that.(*VersionParams)
   549  	if !ok {
   550  		that2, ok := that.(VersionParams)
   551  		if ok {
   552  			that1 = &that2
   553  		} else {
   554  			return false
   555  		}
   556  	}
   557  	if that1 == nil {
   558  		return this == nil
   559  	} else if this == nil {
   560  		return false
   561  	}
   562  	if this.App != that1.App {
   563  		return false
   564  	}
   565  	return true
   566  }
   567  func (this *HashedParams) Equal(that interface{}) bool {
   568  	if that == nil {
   569  		return this == nil
   570  	}
   571  
   572  	that1, ok := that.(*HashedParams)
   573  	if !ok {
   574  		that2, ok := that.(HashedParams)
   575  		if ok {
   576  			that1 = &that2
   577  		} else {
   578  			return false
   579  		}
   580  	}
   581  	if that1 == nil {
   582  		return this == nil
   583  	} else if this == nil {
   584  		return false
   585  	}
   586  	if this.BlockMaxBytes != that1.BlockMaxBytes {
   587  		return false
   588  	}
   589  	if this.BlockMaxGas != that1.BlockMaxGas {
   590  		return false
   591  	}
   592  	return true
   593  }
   594  func (m *ConsensusParams) Marshal() (dAtA []byte, err error) {
   595  	size := m.Size()
   596  	dAtA = make([]byte, size)
   597  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   598  	if err != nil {
   599  		return nil, err
   600  	}
   601  	return dAtA[:n], nil
   602  }
   603  
   604  func (m *ConsensusParams) MarshalTo(dAtA []byte) (int, error) {
   605  	size := m.Size()
   606  	return m.MarshalToSizedBuffer(dAtA[:size])
   607  }
   608  
   609  func (m *ConsensusParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   610  	i := len(dAtA)
   611  	_ = i
   612  	var l int
   613  	_ = l
   614  	if m.Version != nil {
   615  		{
   616  			size, err := m.Version.MarshalToSizedBuffer(dAtA[:i])
   617  			if err != nil {
   618  				return 0, err
   619  			}
   620  			i -= size
   621  			i = encodeVarintParams(dAtA, i, uint64(size))
   622  		}
   623  		i--
   624  		dAtA[i] = 0x22
   625  	}
   626  	if m.Validator != nil {
   627  		{
   628  			size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i])
   629  			if err != nil {
   630  				return 0, err
   631  			}
   632  			i -= size
   633  			i = encodeVarintParams(dAtA, i, uint64(size))
   634  		}
   635  		i--
   636  		dAtA[i] = 0x1a
   637  	}
   638  	if m.Evidence != nil {
   639  		{
   640  			size, err := m.Evidence.MarshalToSizedBuffer(dAtA[:i])
   641  			if err != nil {
   642  				return 0, err
   643  			}
   644  			i -= size
   645  			i = encodeVarintParams(dAtA, i, uint64(size))
   646  		}
   647  		i--
   648  		dAtA[i] = 0x12
   649  	}
   650  	if m.Block != nil {
   651  		{
   652  			size, err := m.Block.MarshalToSizedBuffer(dAtA[:i])
   653  			if err != nil {
   654  				return 0, err
   655  			}
   656  			i -= size
   657  			i = encodeVarintParams(dAtA, i, uint64(size))
   658  		}
   659  		i--
   660  		dAtA[i] = 0xa
   661  	}
   662  	return len(dAtA) - i, nil
   663  }
   664  
   665  func (m *BlockParams) Marshal() (dAtA []byte, err error) {
   666  	size := m.Size()
   667  	dAtA = make([]byte, size)
   668  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   669  	if err != nil {
   670  		return nil, err
   671  	}
   672  	return dAtA[:n], nil
   673  }
   674  
   675  func (m *BlockParams) MarshalTo(dAtA []byte) (int, error) {
   676  	size := m.Size()
   677  	return m.MarshalToSizedBuffer(dAtA[:size])
   678  }
   679  
   680  func (m *BlockParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   681  	i := len(dAtA)
   682  	_ = i
   683  	var l int
   684  	_ = l
   685  	if m.MaxGas != 0 {
   686  		i = encodeVarintParams(dAtA, i, uint64(m.MaxGas))
   687  		i--
   688  		dAtA[i] = 0x10
   689  	}
   690  	if m.MaxBytes != 0 {
   691  		i = encodeVarintParams(dAtA, i, uint64(m.MaxBytes))
   692  		i--
   693  		dAtA[i] = 0x8
   694  	}
   695  	return len(dAtA) - i, nil
   696  }
   697  
   698  func (m *EvidenceParams) Marshal() (dAtA []byte, err error) {
   699  	size := m.Size()
   700  	dAtA = make([]byte, size)
   701  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   702  	if err != nil {
   703  		return nil, err
   704  	}
   705  	return dAtA[:n], nil
   706  }
   707  
   708  func (m *EvidenceParams) MarshalTo(dAtA []byte) (int, error) {
   709  	size := m.Size()
   710  	return m.MarshalToSizedBuffer(dAtA[:size])
   711  }
   712  
   713  func (m *EvidenceParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   714  	i := len(dAtA)
   715  	_ = i
   716  	var l int
   717  	_ = l
   718  	if m.MaxBytes != 0 {
   719  		i = encodeVarintParams(dAtA, i, uint64(m.MaxBytes))
   720  		i--
   721  		dAtA[i] = 0x18
   722  	}
   723  	n5, err5 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(m.MaxAgeDuration, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.MaxAgeDuration):])
   724  	if err5 != nil {
   725  		return 0, err5
   726  	}
   727  	i -= n5
   728  	i = encodeVarintParams(dAtA, i, uint64(n5))
   729  	i--
   730  	dAtA[i] = 0x12
   731  	if m.MaxAgeNumBlocks != 0 {
   732  		i = encodeVarintParams(dAtA, i, uint64(m.MaxAgeNumBlocks))
   733  		i--
   734  		dAtA[i] = 0x8
   735  	}
   736  	return len(dAtA) - i, nil
   737  }
   738  
   739  func (m *ValidatorParams) Marshal() (dAtA []byte, err error) {
   740  	size := m.Size()
   741  	dAtA = make([]byte, size)
   742  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   743  	if err != nil {
   744  		return nil, err
   745  	}
   746  	return dAtA[:n], nil
   747  }
   748  
   749  func (m *ValidatorParams) MarshalTo(dAtA []byte) (int, error) {
   750  	size := m.Size()
   751  	return m.MarshalToSizedBuffer(dAtA[:size])
   752  }
   753  
   754  func (m *ValidatorParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   755  	i := len(dAtA)
   756  	_ = i
   757  	var l int
   758  	_ = l
   759  	if len(m.PubKeyTypes) > 0 {
   760  		for iNdEx := len(m.PubKeyTypes) - 1; iNdEx >= 0; iNdEx-- {
   761  			i -= len(m.PubKeyTypes[iNdEx])
   762  			copy(dAtA[i:], m.PubKeyTypes[iNdEx])
   763  			i = encodeVarintParams(dAtA, i, uint64(len(m.PubKeyTypes[iNdEx])))
   764  			i--
   765  			dAtA[i] = 0xa
   766  		}
   767  	}
   768  	return len(dAtA) - i, nil
   769  }
   770  
   771  func (m *VersionParams) Marshal() (dAtA []byte, err error) {
   772  	size := m.Size()
   773  	dAtA = make([]byte, size)
   774  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   775  	if err != nil {
   776  		return nil, err
   777  	}
   778  	return dAtA[:n], nil
   779  }
   780  
   781  func (m *VersionParams) MarshalTo(dAtA []byte) (int, error) {
   782  	size := m.Size()
   783  	return m.MarshalToSizedBuffer(dAtA[:size])
   784  }
   785  
   786  func (m *VersionParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   787  	i := len(dAtA)
   788  	_ = i
   789  	var l int
   790  	_ = l
   791  	if m.App != 0 {
   792  		i = encodeVarintParams(dAtA, i, uint64(m.App))
   793  		i--
   794  		dAtA[i] = 0x8
   795  	}
   796  	return len(dAtA) - i, nil
   797  }
   798  
   799  func (m *HashedParams) Marshal() (dAtA []byte, err error) {
   800  	size := m.Size()
   801  	dAtA = make([]byte, size)
   802  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   803  	if err != nil {
   804  		return nil, err
   805  	}
   806  	return dAtA[:n], nil
   807  }
   808  
   809  func (m *HashedParams) MarshalTo(dAtA []byte) (int, error) {
   810  	size := m.Size()
   811  	return m.MarshalToSizedBuffer(dAtA[:size])
   812  }
   813  
   814  func (m *HashedParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   815  	i := len(dAtA)
   816  	_ = i
   817  	var l int
   818  	_ = l
   819  	if m.BlockMaxGas != 0 {
   820  		i = encodeVarintParams(dAtA, i, uint64(m.BlockMaxGas))
   821  		i--
   822  		dAtA[i] = 0x10
   823  	}
   824  	if m.BlockMaxBytes != 0 {
   825  		i = encodeVarintParams(dAtA, i, uint64(m.BlockMaxBytes))
   826  		i--
   827  		dAtA[i] = 0x8
   828  	}
   829  	return len(dAtA) - i, nil
   830  }
   831  
   832  func encodeVarintParams(dAtA []byte, offset int, v uint64) int {
   833  	offset -= sovParams(v)
   834  	base := offset
   835  	for v >= 1<<7 {
   836  		dAtA[offset] = uint8(v&0x7f | 0x80)
   837  		v >>= 7
   838  		offset++
   839  	}
   840  	dAtA[offset] = uint8(v)
   841  	return base
   842  }
   843  func NewPopulatedValidatorParams(r randyParams, easy bool) *ValidatorParams {
   844  	this := &ValidatorParams{}
   845  	v1 := r.Intn(10)
   846  	this.PubKeyTypes = make([]string, v1)
   847  	for i := 0; i < v1; i++ {
   848  		this.PubKeyTypes[i] = string(randStringParams(r))
   849  	}
   850  	if !easy && r.Intn(10) != 0 {
   851  	}
   852  	return this
   853  }
   854  
   855  func NewPopulatedVersionParams(r randyParams, easy bool) *VersionParams {
   856  	this := &VersionParams{}
   857  	this.App = uint64(uint64(r.Uint32()))
   858  	if !easy && r.Intn(10) != 0 {
   859  	}
   860  	return this
   861  }
   862  
   863  type randyParams interface {
   864  	Float32() float32
   865  	Float64() float64
   866  	Int63() int64
   867  	Int31() int32
   868  	Uint32() uint32
   869  	Intn(n int) int
   870  }
   871  
   872  func randUTF8RuneParams(r randyParams) rune {
   873  	ru := r.Intn(62)
   874  	if ru < 10 {
   875  		return rune(ru + 48)
   876  	} else if ru < 36 {
   877  		return rune(ru + 55)
   878  	}
   879  	return rune(ru + 61)
   880  }
   881  func randStringParams(r randyParams) string {
   882  	v2 := r.Intn(100)
   883  	tmps := make([]rune, v2)
   884  	for i := 0; i < v2; i++ {
   885  		tmps[i] = randUTF8RuneParams(r)
   886  	}
   887  	return string(tmps)
   888  }
   889  func randUnrecognizedParams(r randyParams, maxFieldNumber int) (dAtA []byte) {
   890  	l := r.Intn(5)
   891  	for i := 0; i < l; i++ {
   892  		wire := r.Intn(4)
   893  		if wire == 3 {
   894  			wire = 5
   895  		}
   896  		fieldNumber := maxFieldNumber + r.Intn(100)
   897  		dAtA = randFieldParams(dAtA, r, fieldNumber, wire)
   898  	}
   899  	return dAtA
   900  }
   901  func randFieldParams(dAtA []byte, r randyParams, fieldNumber int, wire int) []byte {
   902  	key := uint32(fieldNumber)<<3 | uint32(wire)
   903  	switch wire {
   904  	case 0:
   905  		dAtA = encodeVarintPopulateParams(dAtA, uint64(key))
   906  		v3 := r.Int63()
   907  		if r.Intn(2) == 0 {
   908  			v3 *= -1
   909  		}
   910  		dAtA = encodeVarintPopulateParams(dAtA, uint64(v3))
   911  	case 1:
   912  		dAtA = encodeVarintPopulateParams(dAtA, uint64(key))
   913  		dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
   914  	case 2:
   915  		dAtA = encodeVarintPopulateParams(dAtA, uint64(key))
   916  		ll := r.Intn(100)
   917  		dAtA = encodeVarintPopulateParams(dAtA, uint64(ll))
   918  		for j := 0; j < ll; j++ {
   919  			dAtA = append(dAtA, byte(r.Intn(256)))
   920  		}
   921  	default:
   922  		dAtA = encodeVarintPopulateParams(dAtA, uint64(key))
   923  		dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
   924  	}
   925  	return dAtA
   926  }
   927  func encodeVarintPopulateParams(dAtA []byte, v uint64) []byte {
   928  	for v >= 1<<7 {
   929  		dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80))
   930  		v >>= 7
   931  	}
   932  	dAtA = append(dAtA, uint8(v))
   933  	return dAtA
   934  }
   935  func (m *ConsensusParams) Size() (n int) {
   936  	if m == nil {
   937  		return 0
   938  	}
   939  	var l int
   940  	_ = l
   941  	if m.Block != nil {
   942  		l = m.Block.Size()
   943  		n += 1 + l + sovParams(uint64(l))
   944  	}
   945  	if m.Evidence != nil {
   946  		l = m.Evidence.Size()
   947  		n += 1 + l + sovParams(uint64(l))
   948  	}
   949  	if m.Validator != nil {
   950  		l = m.Validator.Size()
   951  		n += 1 + l + sovParams(uint64(l))
   952  	}
   953  	if m.Version != nil {
   954  		l = m.Version.Size()
   955  		n += 1 + l + sovParams(uint64(l))
   956  	}
   957  	return n
   958  }
   959  
   960  func (m *BlockParams) Size() (n int) {
   961  	if m == nil {
   962  		return 0
   963  	}
   964  	var l int
   965  	_ = l
   966  	if m.MaxBytes != 0 {
   967  		n += 1 + sovParams(uint64(m.MaxBytes))
   968  	}
   969  	if m.MaxGas != 0 {
   970  		n += 1 + sovParams(uint64(m.MaxGas))
   971  	}
   972  	return n
   973  }
   974  
   975  func (m *EvidenceParams) Size() (n int) {
   976  	if m == nil {
   977  		return 0
   978  	}
   979  	var l int
   980  	_ = l
   981  	if m.MaxAgeNumBlocks != 0 {
   982  		n += 1 + sovParams(uint64(m.MaxAgeNumBlocks))
   983  	}
   984  	l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.MaxAgeDuration)
   985  	n += 1 + l + sovParams(uint64(l))
   986  	if m.MaxBytes != 0 {
   987  		n += 1 + sovParams(uint64(m.MaxBytes))
   988  	}
   989  	return n
   990  }
   991  
   992  func (m *ValidatorParams) Size() (n int) {
   993  	if m == nil {
   994  		return 0
   995  	}
   996  	var l int
   997  	_ = l
   998  	if len(m.PubKeyTypes) > 0 {
   999  		for _, s := range m.PubKeyTypes {
  1000  			l = len(s)
  1001  			n += 1 + l + sovParams(uint64(l))
  1002  		}
  1003  	}
  1004  	return n
  1005  }
  1006  
  1007  func (m *VersionParams) Size() (n int) {
  1008  	if m == nil {
  1009  		return 0
  1010  	}
  1011  	var l int
  1012  	_ = l
  1013  	if m.App != 0 {
  1014  		n += 1 + sovParams(uint64(m.App))
  1015  	}
  1016  	return n
  1017  }
  1018  
  1019  func (m *HashedParams) Size() (n int) {
  1020  	if m == nil {
  1021  		return 0
  1022  	}
  1023  	var l int
  1024  	_ = l
  1025  	if m.BlockMaxBytes != 0 {
  1026  		n += 1 + sovParams(uint64(m.BlockMaxBytes))
  1027  	}
  1028  	if m.BlockMaxGas != 0 {
  1029  		n += 1 + sovParams(uint64(m.BlockMaxGas))
  1030  	}
  1031  	return n
  1032  }
  1033  
  1034  func sovParams(x uint64) (n int) {
  1035  	return (math_bits.Len64(x|1) + 6) / 7
  1036  }
  1037  func sozParams(x uint64) (n int) {
  1038  	return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1039  }
  1040  func (m *ConsensusParams) Unmarshal(dAtA []byte) error {
  1041  	l := len(dAtA)
  1042  	iNdEx := 0
  1043  	for iNdEx < l {
  1044  		preIndex := iNdEx
  1045  		var wire uint64
  1046  		for shift := uint(0); ; shift += 7 {
  1047  			if shift >= 64 {
  1048  				return ErrIntOverflowParams
  1049  			}
  1050  			if iNdEx >= l {
  1051  				return io.ErrUnexpectedEOF
  1052  			}
  1053  			b := dAtA[iNdEx]
  1054  			iNdEx++
  1055  			wire |= uint64(b&0x7F) << shift
  1056  			if b < 0x80 {
  1057  				break
  1058  			}
  1059  		}
  1060  		fieldNum := int32(wire >> 3)
  1061  		wireType := int(wire & 0x7)
  1062  		if wireType == 4 {
  1063  			return fmt.Errorf("proto: ConsensusParams: wiretype end group for non-group")
  1064  		}
  1065  		if fieldNum <= 0 {
  1066  			return fmt.Errorf("proto: ConsensusParams: illegal tag %d (wire type %d)", fieldNum, wire)
  1067  		}
  1068  		switch fieldNum {
  1069  		case 1:
  1070  			if wireType != 2 {
  1071  				return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType)
  1072  			}
  1073  			var msglen int
  1074  			for shift := uint(0); ; shift += 7 {
  1075  				if shift >= 64 {
  1076  					return ErrIntOverflowParams
  1077  				}
  1078  				if iNdEx >= l {
  1079  					return io.ErrUnexpectedEOF
  1080  				}
  1081  				b := dAtA[iNdEx]
  1082  				iNdEx++
  1083  				msglen |= int(b&0x7F) << shift
  1084  				if b < 0x80 {
  1085  					break
  1086  				}
  1087  			}
  1088  			if msglen < 0 {
  1089  				return ErrInvalidLengthParams
  1090  			}
  1091  			postIndex := iNdEx + msglen
  1092  			if postIndex < 0 {
  1093  				return ErrInvalidLengthParams
  1094  			}
  1095  			if postIndex > l {
  1096  				return io.ErrUnexpectedEOF
  1097  			}
  1098  			if m.Block == nil {
  1099  				m.Block = &BlockParams{}
  1100  			}
  1101  			if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1102  				return err
  1103  			}
  1104  			iNdEx = postIndex
  1105  		case 2:
  1106  			if wireType != 2 {
  1107  				return fmt.Errorf("proto: wrong wireType = %d for field Evidence", wireType)
  1108  			}
  1109  			var msglen int
  1110  			for shift := uint(0); ; shift += 7 {
  1111  				if shift >= 64 {
  1112  					return ErrIntOverflowParams
  1113  				}
  1114  				if iNdEx >= l {
  1115  					return io.ErrUnexpectedEOF
  1116  				}
  1117  				b := dAtA[iNdEx]
  1118  				iNdEx++
  1119  				msglen |= int(b&0x7F) << shift
  1120  				if b < 0x80 {
  1121  					break
  1122  				}
  1123  			}
  1124  			if msglen < 0 {
  1125  				return ErrInvalidLengthParams
  1126  			}
  1127  			postIndex := iNdEx + msglen
  1128  			if postIndex < 0 {
  1129  				return ErrInvalidLengthParams
  1130  			}
  1131  			if postIndex > l {
  1132  				return io.ErrUnexpectedEOF
  1133  			}
  1134  			if m.Evidence == nil {
  1135  				m.Evidence = &EvidenceParams{}
  1136  			}
  1137  			if err := m.Evidence.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1138  				return err
  1139  			}
  1140  			iNdEx = postIndex
  1141  		case 3:
  1142  			if wireType != 2 {
  1143  				return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType)
  1144  			}
  1145  			var msglen int
  1146  			for shift := uint(0); ; shift += 7 {
  1147  				if shift >= 64 {
  1148  					return ErrIntOverflowParams
  1149  				}
  1150  				if iNdEx >= l {
  1151  					return io.ErrUnexpectedEOF
  1152  				}
  1153  				b := dAtA[iNdEx]
  1154  				iNdEx++
  1155  				msglen |= int(b&0x7F) << shift
  1156  				if b < 0x80 {
  1157  					break
  1158  				}
  1159  			}
  1160  			if msglen < 0 {
  1161  				return ErrInvalidLengthParams
  1162  			}
  1163  			postIndex := iNdEx + msglen
  1164  			if postIndex < 0 {
  1165  				return ErrInvalidLengthParams
  1166  			}
  1167  			if postIndex > l {
  1168  				return io.ErrUnexpectedEOF
  1169  			}
  1170  			if m.Validator == nil {
  1171  				m.Validator = &ValidatorParams{}
  1172  			}
  1173  			if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1174  				return err
  1175  			}
  1176  			iNdEx = postIndex
  1177  		case 4:
  1178  			if wireType != 2 {
  1179  				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  1180  			}
  1181  			var msglen int
  1182  			for shift := uint(0); ; shift += 7 {
  1183  				if shift >= 64 {
  1184  					return ErrIntOverflowParams
  1185  				}
  1186  				if iNdEx >= l {
  1187  					return io.ErrUnexpectedEOF
  1188  				}
  1189  				b := dAtA[iNdEx]
  1190  				iNdEx++
  1191  				msglen |= int(b&0x7F) << shift
  1192  				if b < 0x80 {
  1193  					break
  1194  				}
  1195  			}
  1196  			if msglen < 0 {
  1197  				return ErrInvalidLengthParams
  1198  			}
  1199  			postIndex := iNdEx + msglen
  1200  			if postIndex < 0 {
  1201  				return ErrInvalidLengthParams
  1202  			}
  1203  			if postIndex > l {
  1204  				return io.ErrUnexpectedEOF
  1205  			}
  1206  			if m.Version == nil {
  1207  				m.Version = &VersionParams{}
  1208  			}
  1209  			if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1210  				return err
  1211  			}
  1212  			iNdEx = postIndex
  1213  		default:
  1214  			iNdEx = preIndex
  1215  			skippy, err := skipParams(dAtA[iNdEx:])
  1216  			if err != nil {
  1217  				return err
  1218  			}
  1219  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1220  				return ErrInvalidLengthParams
  1221  			}
  1222  			if (iNdEx + skippy) > l {
  1223  				return io.ErrUnexpectedEOF
  1224  			}
  1225  			iNdEx += skippy
  1226  		}
  1227  	}
  1228  
  1229  	if iNdEx > l {
  1230  		return io.ErrUnexpectedEOF
  1231  	}
  1232  	return nil
  1233  }
  1234  func (m *BlockParams) Unmarshal(dAtA []byte) error {
  1235  	l := len(dAtA)
  1236  	iNdEx := 0
  1237  	for iNdEx < l {
  1238  		preIndex := iNdEx
  1239  		var wire uint64
  1240  		for shift := uint(0); ; shift += 7 {
  1241  			if shift >= 64 {
  1242  				return ErrIntOverflowParams
  1243  			}
  1244  			if iNdEx >= l {
  1245  				return io.ErrUnexpectedEOF
  1246  			}
  1247  			b := dAtA[iNdEx]
  1248  			iNdEx++
  1249  			wire |= uint64(b&0x7F) << shift
  1250  			if b < 0x80 {
  1251  				break
  1252  			}
  1253  		}
  1254  		fieldNum := int32(wire >> 3)
  1255  		wireType := int(wire & 0x7)
  1256  		if wireType == 4 {
  1257  			return fmt.Errorf("proto: BlockParams: wiretype end group for non-group")
  1258  		}
  1259  		if fieldNum <= 0 {
  1260  			return fmt.Errorf("proto: BlockParams: illegal tag %d (wire type %d)", fieldNum, wire)
  1261  		}
  1262  		switch fieldNum {
  1263  		case 1:
  1264  			if wireType != 0 {
  1265  				return fmt.Errorf("proto: wrong wireType = %d for field MaxBytes", wireType)
  1266  			}
  1267  			m.MaxBytes = 0
  1268  			for shift := uint(0); ; shift += 7 {
  1269  				if shift >= 64 {
  1270  					return ErrIntOverflowParams
  1271  				}
  1272  				if iNdEx >= l {
  1273  					return io.ErrUnexpectedEOF
  1274  				}
  1275  				b := dAtA[iNdEx]
  1276  				iNdEx++
  1277  				m.MaxBytes |= int64(b&0x7F) << shift
  1278  				if b < 0x80 {
  1279  					break
  1280  				}
  1281  			}
  1282  		case 2:
  1283  			if wireType != 0 {
  1284  				return fmt.Errorf("proto: wrong wireType = %d for field MaxGas", wireType)
  1285  			}
  1286  			m.MaxGas = 0
  1287  			for shift := uint(0); ; shift += 7 {
  1288  				if shift >= 64 {
  1289  					return ErrIntOverflowParams
  1290  				}
  1291  				if iNdEx >= l {
  1292  					return io.ErrUnexpectedEOF
  1293  				}
  1294  				b := dAtA[iNdEx]
  1295  				iNdEx++
  1296  				m.MaxGas |= int64(b&0x7F) << shift
  1297  				if b < 0x80 {
  1298  					break
  1299  				}
  1300  			}
  1301  		default:
  1302  			iNdEx = preIndex
  1303  			skippy, err := skipParams(dAtA[iNdEx:])
  1304  			if err != nil {
  1305  				return err
  1306  			}
  1307  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1308  				return ErrInvalidLengthParams
  1309  			}
  1310  			if (iNdEx + skippy) > l {
  1311  				return io.ErrUnexpectedEOF
  1312  			}
  1313  			iNdEx += skippy
  1314  		}
  1315  	}
  1316  
  1317  	if iNdEx > l {
  1318  		return io.ErrUnexpectedEOF
  1319  	}
  1320  	return nil
  1321  }
  1322  func (m *EvidenceParams) Unmarshal(dAtA []byte) error {
  1323  	l := len(dAtA)
  1324  	iNdEx := 0
  1325  	for iNdEx < l {
  1326  		preIndex := iNdEx
  1327  		var wire uint64
  1328  		for shift := uint(0); ; shift += 7 {
  1329  			if shift >= 64 {
  1330  				return ErrIntOverflowParams
  1331  			}
  1332  			if iNdEx >= l {
  1333  				return io.ErrUnexpectedEOF
  1334  			}
  1335  			b := dAtA[iNdEx]
  1336  			iNdEx++
  1337  			wire |= uint64(b&0x7F) << shift
  1338  			if b < 0x80 {
  1339  				break
  1340  			}
  1341  		}
  1342  		fieldNum := int32(wire >> 3)
  1343  		wireType := int(wire & 0x7)
  1344  		if wireType == 4 {
  1345  			return fmt.Errorf("proto: EvidenceParams: wiretype end group for non-group")
  1346  		}
  1347  		if fieldNum <= 0 {
  1348  			return fmt.Errorf("proto: EvidenceParams: illegal tag %d (wire type %d)", fieldNum, wire)
  1349  		}
  1350  		switch fieldNum {
  1351  		case 1:
  1352  			if wireType != 0 {
  1353  				return fmt.Errorf("proto: wrong wireType = %d for field MaxAgeNumBlocks", wireType)
  1354  			}
  1355  			m.MaxAgeNumBlocks = 0
  1356  			for shift := uint(0); ; shift += 7 {
  1357  				if shift >= 64 {
  1358  					return ErrIntOverflowParams
  1359  				}
  1360  				if iNdEx >= l {
  1361  					return io.ErrUnexpectedEOF
  1362  				}
  1363  				b := dAtA[iNdEx]
  1364  				iNdEx++
  1365  				m.MaxAgeNumBlocks |= int64(b&0x7F) << shift
  1366  				if b < 0x80 {
  1367  					break
  1368  				}
  1369  			}
  1370  		case 2:
  1371  			if wireType != 2 {
  1372  				return fmt.Errorf("proto: wrong wireType = %d for field MaxAgeDuration", wireType)
  1373  			}
  1374  			var msglen int
  1375  			for shift := uint(0); ; shift += 7 {
  1376  				if shift >= 64 {
  1377  					return ErrIntOverflowParams
  1378  				}
  1379  				if iNdEx >= l {
  1380  					return io.ErrUnexpectedEOF
  1381  				}
  1382  				b := dAtA[iNdEx]
  1383  				iNdEx++
  1384  				msglen |= int(b&0x7F) << shift
  1385  				if b < 0x80 {
  1386  					break
  1387  				}
  1388  			}
  1389  			if msglen < 0 {
  1390  				return ErrInvalidLengthParams
  1391  			}
  1392  			postIndex := iNdEx + msglen
  1393  			if postIndex < 0 {
  1394  				return ErrInvalidLengthParams
  1395  			}
  1396  			if postIndex > l {
  1397  				return io.ErrUnexpectedEOF
  1398  			}
  1399  			if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&m.MaxAgeDuration, dAtA[iNdEx:postIndex]); err != nil {
  1400  				return err
  1401  			}
  1402  			iNdEx = postIndex
  1403  		case 3:
  1404  			if wireType != 0 {
  1405  				return fmt.Errorf("proto: wrong wireType = %d for field MaxBytes", wireType)
  1406  			}
  1407  			m.MaxBytes = 0
  1408  			for shift := uint(0); ; shift += 7 {
  1409  				if shift >= 64 {
  1410  					return ErrIntOverflowParams
  1411  				}
  1412  				if iNdEx >= l {
  1413  					return io.ErrUnexpectedEOF
  1414  				}
  1415  				b := dAtA[iNdEx]
  1416  				iNdEx++
  1417  				m.MaxBytes |= int64(b&0x7F) << shift
  1418  				if b < 0x80 {
  1419  					break
  1420  				}
  1421  			}
  1422  		default:
  1423  			iNdEx = preIndex
  1424  			skippy, err := skipParams(dAtA[iNdEx:])
  1425  			if err != nil {
  1426  				return err
  1427  			}
  1428  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1429  				return ErrInvalidLengthParams
  1430  			}
  1431  			if (iNdEx + skippy) > l {
  1432  				return io.ErrUnexpectedEOF
  1433  			}
  1434  			iNdEx += skippy
  1435  		}
  1436  	}
  1437  
  1438  	if iNdEx > l {
  1439  		return io.ErrUnexpectedEOF
  1440  	}
  1441  	return nil
  1442  }
  1443  func (m *ValidatorParams) Unmarshal(dAtA []byte) error {
  1444  	l := len(dAtA)
  1445  	iNdEx := 0
  1446  	for iNdEx < l {
  1447  		preIndex := iNdEx
  1448  		var wire uint64
  1449  		for shift := uint(0); ; shift += 7 {
  1450  			if shift >= 64 {
  1451  				return ErrIntOverflowParams
  1452  			}
  1453  			if iNdEx >= l {
  1454  				return io.ErrUnexpectedEOF
  1455  			}
  1456  			b := dAtA[iNdEx]
  1457  			iNdEx++
  1458  			wire |= uint64(b&0x7F) << shift
  1459  			if b < 0x80 {
  1460  				break
  1461  			}
  1462  		}
  1463  		fieldNum := int32(wire >> 3)
  1464  		wireType := int(wire & 0x7)
  1465  		if wireType == 4 {
  1466  			return fmt.Errorf("proto: ValidatorParams: wiretype end group for non-group")
  1467  		}
  1468  		if fieldNum <= 0 {
  1469  			return fmt.Errorf("proto: ValidatorParams: illegal tag %d (wire type %d)", fieldNum, wire)
  1470  		}
  1471  		switch fieldNum {
  1472  		case 1:
  1473  			if wireType != 2 {
  1474  				return fmt.Errorf("proto: wrong wireType = %d for field PubKeyTypes", wireType)
  1475  			}
  1476  			var stringLen uint64
  1477  			for shift := uint(0); ; shift += 7 {
  1478  				if shift >= 64 {
  1479  					return ErrIntOverflowParams
  1480  				}
  1481  				if iNdEx >= l {
  1482  					return io.ErrUnexpectedEOF
  1483  				}
  1484  				b := dAtA[iNdEx]
  1485  				iNdEx++
  1486  				stringLen |= uint64(b&0x7F) << shift
  1487  				if b < 0x80 {
  1488  					break
  1489  				}
  1490  			}
  1491  			intStringLen := int(stringLen)
  1492  			if intStringLen < 0 {
  1493  				return ErrInvalidLengthParams
  1494  			}
  1495  			postIndex := iNdEx + intStringLen
  1496  			if postIndex < 0 {
  1497  				return ErrInvalidLengthParams
  1498  			}
  1499  			if postIndex > l {
  1500  				return io.ErrUnexpectedEOF
  1501  			}
  1502  			m.PubKeyTypes = append(m.PubKeyTypes, string(dAtA[iNdEx:postIndex]))
  1503  			iNdEx = postIndex
  1504  		default:
  1505  			iNdEx = preIndex
  1506  			skippy, err := skipParams(dAtA[iNdEx:])
  1507  			if err != nil {
  1508  				return err
  1509  			}
  1510  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1511  				return ErrInvalidLengthParams
  1512  			}
  1513  			if (iNdEx + skippy) > l {
  1514  				return io.ErrUnexpectedEOF
  1515  			}
  1516  			iNdEx += skippy
  1517  		}
  1518  	}
  1519  
  1520  	if iNdEx > l {
  1521  		return io.ErrUnexpectedEOF
  1522  	}
  1523  	return nil
  1524  }
  1525  func (m *VersionParams) Unmarshal(dAtA []byte) error {
  1526  	l := len(dAtA)
  1527  	iNdEx := 0
  1528  	for iNdEx < l {
  1529  		preIndex := iNdEx
  1530  		var wire uint64
  1531  		for shift := uint(0); ; shift += 7 {
  1532  			if shift >= 64 {
  1533  				return ErrIntOverflowParams
  1534  			}
  1535  			if iNdEx >= l {
  1536  				return io.ErrUnexpectedEOF
  1537  			}
  1538  			b := dAtA[iNdEx]
  1539  			iNdEx++
  1540  			wire |= uint64(b&0x7F) << shift
  1541  			if b < 0x80 {
  1542  				break
  1543  			}
  1544  		}
  1545  		fieldNum := int32(wire >> 3)
  1546  		wireType := int(wire & 0x7)
  1547  		if wireType == 4 {
  1548  			return fmt.Errorf("proto: VersionParams: wiretype end group for non-group")
  1549  		}
  1550  		if fieldNum <= 0 {
  1551  			return fmt.Errorf("proto: VersionParams: illegal tag %d (wire type %d)", fieldNum, wire)
  1552  		}
  1553  		switch fieldNum {
  1554  		case 1:
  1555  			if wireType != 0 {
  1556  				return fmt.Errorf("proto: wrong wireType = %d for field App", wireType)
  1557  			}
  1558  			m.App = 0
  1559  			for shift := uint(0); ; shift += 7 {
  1560  				if shift >= 64 {
  1561  					return ErrIntOverflowParams
  1562  				}
  1563  				if iNdEx >= l {
  1564  					return io.ErrUnexpectedEOF
  1565  				}
  1566  				b := dAtA[iNdEx]
  1567  				iNdEx++
  1568  				m.App |= uint64(b&0x7F) << shift
  1569  				if b < 0x80 {
  1570  					break
  1571  				}
  1572  			}
  1573  		default:
  1574  			iNdEx = preIndex
  1575  			skippy, err := skipParams(dAtA[iNdEx:])
  1576  			if err != nil {
  1577  				return err
  1578  			}
  1579  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1580  				return ErrInvalidLengthParams
  1581  			}
  1582  			if (iNdEx + skippy) > l {
  1583  				return io.ErrUnexpectedEOF
  1584  			}
  1585  			iNdEx += skippy
  1586  		}
  1587  	}
  1588  
  1589  	if iNdEx > l {
  1590  		return io.ErrUnexpectedEOF
  1591  	}
  1592  	return nil
  1593  }
  1594  func (m *HashedParams) Unmarshal(dAtA []byte) error {
  1595  	l := len(dAtA)
  1596  	iNdEx := 0
  1597  	for iNdEx < l {
  1598  		preIndex := iNdEx
  1599  		var wire uint64
  1600  		for shift := uint(0); ; shift += 7 {
  1601  			if shift >= 64 {
  1602  				return ErrIntOverflowParams
  1603  			}
  1604  			if iNdEx >= l {
  1605  				return io.ErrUnexpectedEOF
  1606  			}
  1607  			b := dAtA[iNdEx]
  1608  			iNdEx++
  1609  			wire |= uint64(b&0x7F) << shift
  1610  			if b < 0x80 {
  1611  				break
  1612  			}
  1613  		}
  1614  		fieldNum := int32(wire >> 3)
  1615  		wireType := int(wire & 0x7)
  1616  		if wireType == 4 {
  1617  			return fmt.Errorf("proto: HashedParams: wiretype end group for non-group")
  1618  		}
  1619  		if fieldNum <= 0 {
  1620  			return fmt.Errorf("proto: HashedParams: illegal tag %d (wire type %d)", fieldNum, wire)
  1621  		}
  1622  		switch fieldNum {
  1623  		case 1:
  1624  			if wireType != 0 {
  1625  				return fmt.Errorf("proto: wrong wireType = %d for field BlockMaxBytes", wireType)
  1626  			}
  1627  			m.BlockMaxBytes = 0
  1628  			for shift := uint(0); ; shift += 7 {
  1629  				if shift >= 64 {
  1630  					return ErrIntOverflowParams
  1631  				}
  1632  				if iNdEx >= l {
  1633  					return io.ErrUnexpectedEOF
  1634  				}
  1635  				b := dAtA[iNdEx]
  1636  				iNdEx++
  1637  				m.BlockMaxBytes |= int64(b&0x7F) << shift
  1638  				if b < 0x80 {
  1639  					break
  1640  				}
  1641  			}
  1642  		case 2:
  1643  			if wireType != 0 {
  1644  				return fmt.Errorf("proto: wrong wireType = %d for field BlockMaxGas", wireType)
  1645  			}
  1646  			m.BlockMaxGas = 0
  1647  			for shift := uint(0); ; shift += 7 {
  1648  				if shift >= 64 {
  1649  					return ErrIntOverflowParams
  1650  				}
  1651  				if iNdEx >= l {
  1652  					return io.ErrUnexpectedEOF
  1653  				}
  1654  				b := dAtA[iNdEx]
  1655  				iNdEx++
  1656  				m.BlockMaxGas |= int64(b&0x7F) << shift
  1657  				if b < 0x80 {
  1658  					break
  1659  				}
  1660  			}
  1661  		default:
  1662  			iNdEx = preIndex
  1663  			skippy, err := skipParams(dAtA[iNdEx:])
  1664  			if err != nil {
  1665  				return err
  1666  			}
  1667  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1668  				return ErrInvalidLengthParams
  1669  			}
  1670  			if (iNdEx + skippy) > l {
  1671  				return io.ErrUnexpectedEOF
  1672  			}
  1673  			iNdEx += skippy
  1674  		}
  1675  	}
  1676  
  1677  	if iNdEx > l {
  1678  		return io.ErrUnexpectedEOF
  1679  	}
  1680  	return nil
  1681  }
  1682  func skipParams(dAtA []byte) (n int, err error) {
  1683  	l := len(dAtA)
  1684  	iNdEx := 0
  1685  	depth := 0
  1686  	for iNdEx < l {
  1687  		var wire uint64
  1688  		for shift := uint(0); ; shift += 7 {
  1689  			if shift >= 64 {
  1690  				return 0, ErrIntOverflowParams
  1691  			}
  1692  			if iNdEx >= l {
  1693  				return 0, io.ErrUnexpectedEOF
  1694  			}
  1695  			b := dAtA[iNdEx]
  1696  			iNdEx++
  1697  			wire |= (uint64(b) & 0x7F) << shift
  1698  			if b < 0x80 {
  1699  				break
  1700  			}
  1701  		}
  1702  		wireType := int(wire & 0x7)
  1703  		switch wireType {
  1704  		case 0:
  1705  			for shift := uint(0); ; shift += 7 {
  1706  				if shift >= 64 {
  1707  					return 0, ErrIntOverflowParams
  1708  				}
  1709  				if iNdEx >= l {
  1710  					return 0, io.ErrUnexpectedEOF
  1711  				}
  1712  				iNdEx++
  1713  				if dAtA[iNdEx-1] < 0x80 {
  1714  					break
  1715  				}
  1716  			}
  1717  		case 1:
  1718  			iNdEx += 8
  1719  		case 2:
  1720  			var length int
  1721  			for shift := uint(0); ; shift += 7 {
  1722  				if shift >= 64 {
  1723  					return 0, ErrIntOverflowParams
  1724  				}
  1725  				if iNdEx >= l {
  1726  					return 0, io.ErrUnexpectedEOF
  1727  				}
  1728  				b := dAtA[iNdEx]
  1729  				iNdEx++
  1730  				length |= (int(b) & 0x7F) << shift
  1731  				if b < 0x80 {
  1732  					break
  1733  				}
  1734  			}
  1735  			if length < 0 {
  1736  				return 0, ErrInvalidLengthParams
  1737  			}
  1738  			iNdEx += length
  1739  		case 3:
  1740  			depth++
  1741  		case 4:
  1742  			if depth == 0 {
  1743  				return 0, ErrUnexpectedEndOfGroupParams
  1744  			}
  1745  			depth--
  1746  		case 5:
  1747  			iNdEx += 4
  1748  		default:
  1749  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1750  		}
  1751  		if iNdEx < 0 {
  1752  			return 0, ErrInvalidLengthParams
  1753  		}
  1754  		if depth == 0 {
  1755  			return iNdEx, nil
  1756  		}
  1757  	}
  1758  	return 0, io.ErrUnexpectedEOF
  1759  }
  1760  
  1761  var (
  1762  	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
  1763  	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
  1764  	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
  1765  )