Merge pull request #35 from dvf/dvf/bug-fix

New block requires the previous hash
This commit is contained in:
Daniel van Flymen 2017-10-30 00:52:30 -04:00 committed by GitHub
commit 4c4d2059aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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",