Merge pull request #59 from hasanmehmood/fix-Docstring

update Docstring for method proof_of_work, remove duplication
This commit is contained in:
Daniel van Flymen 2018-01-23 18:51:06 -05:00 committed by GitHub
commit 62772084b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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