You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

504 lines
16 KiB

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