class Blockchain implements Serializable, PersistenceUnitContainer {

    public void setCurrentBlockIndex(BigInteger currentBlockIndex) {
        Util.check(currentBlockIndex!=null, "currentBlockIndex!=null");
        Util.check(currentBlockIndex.compareTo(BigInteger.ZERO) >= 0, "currentBlockIndex!=null");
        this.currentBlockIndex = currentBlockIndex;
    }

    public  Blockchain(BlockchainContext context);

}