From 93969fc8e740248d88b993d6f05efbf51c0234c3 Mon Sep 17 00:00:00 2001 From: Hassan Mehmood Date: Thu, 11 Jan 2018 16:56:53 +0500 Subject: [PATCH] update Docstring for method proof_of_work, remove duplication --- blockchain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blockchain.py b/blockchain.py index 4e92d07..ac654fd 100644 --- a/blockchain.py +++ b/blockchain.py @@ -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