Fix major bug

This commit is contained in:
Daniel van Flymen 2017-11-18 12:49:29 -05:00
parent db043edf03
commit a864c6aef4
1 changed files with 2 additions and 1 deletions

View File

@ -200,7 +200,8 @@ def mine():
)
# Forge the new Block by adding it to the chain
block = blockchain.new_block(proof, last_block['previous_hash'])
previous_hash = blockchain.hash(last_block)
block = blockchain.new_block(proof, previous_hash)
response = {
'message': "New Block Forged",