From a96762f4c4813adbdd608d239b36409bf9e4c373 Mon Sep 17 00:00:00 2001 From: pryanshu Date: Sun, 22 Apr 2018 16:03:26 +0800 Subject: [PATCH] bug fix --- blockchain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockchain.py b/blockchain.py index 9de43dd..6dd4574 100644 --- a/blockchain.py +++ b/blockchain.py @@ -55,7 +55,7 @@ class Blockchain: return False # Check that the Proof of Work is correct - if not self.valid_proof(last_block['proof'], block['proof'], last_block['previous_hash']): + if not self.valid_proof(last_block['proof'], block['proof'], self.hash(last_block)): return False last_block = block