Coverage Summary for Class: BlockInformation (org.ethereum.db)

Class Class, % Method, % Line, %
BlockInformation 100% (1/1) 100% (4/4) 100% (8/8)


1 package org.ethereum.db; 2  3 import co.rsk.core.BlockDifficulty; 4  5 /** 6  * Created by usuario on 07/06/2017. 7  */ 8 public class BlockInformation { 9  private byte[] hash; 10  private BlockDifficulty totalDifficulty; 11  private boolean inMainChain; 12  13  public BlockInformation(byte[] hash, BlockDifficulty totalDifficulty, boolean inMainChain) { 14  this.hash = hash; 15  this.totalDifficulty = totalDifficulty; 16  this.inMainChain = inMainChain; 17  } 18  19  public byte[] getHash() { 20  return this.hash; 21  } 22  23  public BlockDifficulty getTotalDifficulty() { 24  return this.totalDifficulty; 25  } 26  27  public boolean isInMainChain() { 28  return this.inMainChain; 29  } 30 }