BlockMiner.java


SUBMITTED BY: Guest

DATE: March 1, 2014, 9:44 a.m.

FORMAT: Java

SIZE: 764 Bytes

HITS: 1387

  1. package creator;
  2. /**
  3. * Created by KRISZTIAN on 2014.02.01..
  4. */
  5. import model.CleanBlock;
  6. import model.Block;
  7. public class BlockMiner {
  8. public BlockMiner(int userBlocks, int latestHeight){
  9. int need = getRequiredHash(latestHeight, userBlocks);
  10. }
  11. public static int getRequiredHash(int latestHeight, int userBlocks){
  12. int req = 10000, hashr;
  13. hashr = latestHeight * 1000;
  14. req = req + hashr;
  15. hashr = userBlocks * 100000;
  16. req = req + hashr;
  17. return req;
  18. }
  19. public static Block mine(){
  20. System.out.println("Almost...");
  21. return new Block(1200, "SHAJJSJDJSDJEUIRHI", "I", 150);
  22. }
  23. }

comments powered by Disqus