package creator;

/**
 * Created by KRISZTIAN on 2014.02.01..
 */
import model.CleanBlock;
import model.Block;

public class BlockMiner {
    public BlockMiner(int userBlocks, int latestHeight){
        int need = getRequiredHash(latestHeight, userBlocks);

    }

    public static int getRequiredHash(int latestHeight, int userBlocks){
        int req = 10000, hashr;
        hashr = latestHeight * 1000;
        req = req + hashr;
        hashr = userBlocks * 100000;
        req = req + hashr;

        return req;
    }

    public static Block mine(){
        System.out.println("Almost...");
        return new Block(1200, "SHAJJSJDJSDJEUIRHI", "I", 150);
    }
}
