New block needs the previous hash
This commit is contained in:
parent
f03d28f8ad
commit
b1a8a34662
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue