@@ -143,48 +143,6 @@ public List<TxProxy> getTransactions() {
143143 }
144144 // </editor-fold>
145145
146- @ Override
147- public boolean equals (Object o ) {
148- if (this == o )
149- return true ;
150- if (!(o instanceof BlockProxy ))
151- return false ;
152- BlockProxy that = (BlockProxy ) o ;
153- return Objects .equals (number , that .number ) && Objects .equals (hash , that .hash )
154- && Objects .equals (parentHash , that .parentHash ) && Objects .equals (nonce , that .nonce );
155- }
156-
157- @ Override
158- public int hashCode () {
159- return Objects .hash (number , hash , parentHash , nonce );
160- }
161-
162- @ Override
163- public String toString () {
164- return "BlockProxy{" +
165- "number=" + number +
166- ", hash=" + hash +
167- ", parentHash=" + parentHash +
168- ", stateRoot=" + stateRoot +
169- ", size=" + size +
170- ", difficulty=" + difficulty +
171- ", totalDifficulty=" + totalDifficulty +
172- ", timestamp=" + timestamp +
173- ", miner=" + miner +
174- ", nonce=" + nonce +
175- ", extraData=" + extraData +
176- ", logsBloom=" + logsBloom +
177- ", mixHash=" + mixHash +
178- ", gasUsed=" + gasUsed +
179- ", gasLimit=" + gasLimit +
180- ", sha3Uncles=" + sha3Uncles +
181- ", uncles=" + uncles +
182- ", receiptsRoot=" + receiptsRoot +
183- ", transactionsRoot=" + transactionsRoot +
184- ", transactions=" + transactions +
185- '}' ;
186- }
187-
188146 @ Override
189147 public int compareTo (@ NotNull BlockProxy o ) {
190148 return Long .compare (getNumber (), o .getNumber ());
@@ -353,4 +311,63 @@ public BlockProxy build() {
353311 return blockProxy ;
354312 }
355313 }
314+
315+ @ Override
316+ public boolean equals (Object o ) {
317+ if (this == o )
318+ return true ;
319+ if (o == null || getClass () != o .getClass ())
320+ return false ;
321+ BlockProxy that = (BlockProxy ) o ;
322+ return Objects .equals (number , that .number ) && Objects .equals (_number , that ._number ) && Objects .equals (hash , that .hash )
323+ && Objects .equals (parentHash , that .parentHash ) && Objects .equals (stateRoot , that .stateRoot )
324+ && Objects .equals (size , that .size ) && Objects .equals (_size , that ._size )
325+ && Objects .equals (difficulty , that .difficulty ) && Objects .equals (totalDifficulty , that .totalDifficulty )
326+ && Objects .equals (timestamp , that .timestamp ) && Objects .equals (_timestamp , that ._timestamp )
327+ && Objects .equals (miner , that .miner ) && Objects .equals (nonce , that .nonce )
328+ && Objects .equals (extraData , that .extraData ) && Objects .equals (logsBloom , that .logsBloom )
329+ && Objects .equals (mixHash , that .mixHash ) && Objects .equals (gasUsed , that .gasUsed )
330+ && Objects .equals (_gasUsed , that ._gasUsed ) && Objects .equals (gasLimit , that .gasLimit )
331+ && Objects .equals (_gasLimit , that ._gasLimit ) && Objects .equals (sha3Uncles , that .sha3Uncles )
332+ && Objects .equals (uncles , that .uncles ) && Objects .equals (receiptsRoot , that .receiptsRoot )
333+ && Objects .equals (transactionsRoot , that .transactionsRoot ) && Objects .equals (transactions , that .transactions );
334+ }
335+
336+ @ Override
337+ public int hashCode () {
338+ return Objects .hash (number , number , hash , parentHash , stateRoot , size , size , difficulty , totalDifficulty , timestamp ,
339+ timestamp , miner , nonce , extraData , logsBloom , mixHash , gasUsed , gasUsed , gasLimit , gasLimit , sha3Uncles , uncles ,
340+ receiptsRoot , transactionsRoot , transactions );
341+ }
342+
343+ @ Override
344+ public String toString () {
345+ return "BlockProxy{" +
346+ "number=" + number +
347+ ", number=" + _number +
348+ ", hash=" + hash +
349+ ", parentHash=" + parentHash +
350+ ", stateRoot=" + stateRoot +
351+ ", size=" + size +
352+ ", size=" + _size +
353+ ", difficulty=" + difficulty +
354+ ", totalDifficulty=" + totalDifficulty +
355+ ", timestamp=" + timestamp +
356+ ", timestamp=" + _timestamp +
357+ ", miner=" + miner +
358+ ", nonce=" + nonce +
359+ ", extraData=" + extraData +
360+ ", logsBloom=" + logsBloom +
361+ ", mixHash=" + mixHash +
362+ ", gasUsed=" + gasUsed +
363+ ", gasUsed=" + _gasUsed +
364+ ", gasLimit=" + gasLimit +
365+ ", gasLimit=" + _gasLimit +
366+ ", sha3Uncles=" + sha3Uncles +
367+ ", uncles=" + uncles +
368+ ", receiptsRoot=" + receiptsRoot +
369+ ", transactionsRoot=" + transactionsRoot +
370+ ", transactions=" + transactions +
371+ '}' ;
372+ }
356373}
0 commit comments