update Docstring for method proof_of_work, remove duplication

This commit is contained in:
Hassan Mehmood 2018-01-11 16:56:53 +05:00
parent 4010cf3273
commit 93969fc8e7
1 changed files with 2 additions and 2 deletions

View File

@ -149,8 +149,8 @@ class Blockchain:
def proof_of_work(self, last_proof):
"""
Simple Proof of Work Algorithm:
- Find a number p' such that hash(pp') contains leading 4 zeroes, where p is the previous p'
- p is the previous proof, and p' is the new proof
- Find a number p' such that hash(pp') contains leading 4 zeroes
- Where p is the previous proof, and p' is the new proof
"""
proof = 0