New block needs the previous hash

This commit is contained in:
Daniel van Flymen 2017-10-30 00:51:55 -04:00
parent f03d28f8ad
commit b1a8a34662
1 changed files with 1 additions and 1 deletions

View File

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