This commit is contained in:
pryanshu 2018-04-22 16:03:26 +08:00
parent 250a01c83e
commit a96762f4c4
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'], last_block['previous_hash']):
if not self.valid_proof(last_block['proof'], block['proof'], self.hash(last_block)):
return False
last_block = block