update Docstring for method proof_of_work, remove duplication
This commit is contained in:
parent
4010cf3273
commit
93969fc8e7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue