Merge pull request #35 from dvf/dvf/bug-fix
New block requires the previous hash
This commit is contained in:
commit
4c4d2059aa
|
@ -201,7 +201,7 @@ def mine():
|
||||||
)
|
)
|
||||||
|
|
||||||
# Forge the new Block by adding it to the chain
|
# 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 = {
|
response = {
|
||||||
'message': "New Block Forged",
|
'message': "New Block Forged",
|
||||||
|
|
Loading…
Reference in New Issue