Guest User

Untitled

a guest
Jun 25th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. def mine(self, difficulty):
  2. while self.hash[0:difficulty] != '0' * difficulty:
  3. self.nonce += 1
  4. self.hash = self.calculate_hash()
  5.  
  6. return self.hash
Add Comment
Please, Sign In to add comment