Issue #77 Fixed

This commit is contained in:
pryanshu 2018-04-22 16:15:23 +08:00
parent a96762f4c4
commit 189ae4a25f
1 changed files with 1 additions and 1 deletions

View File

@ -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'], self.hash(last_block)):
if not self.valid_proof(last_block['proof'], block['proof'], block['previous_hash']):
return False
last_block = block