Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Mining a Block in Java for
public void mineBlock(int difficulty) {
nonce = 0;
while (!getHash().substring(0, difficulty).equals(Utils.zeros(difficulty))) {
hash = Block.calculateHash(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.