Fix major bug
This commit is contained in:
parent
db043edf03
commit
a864c6aef4
|
@ -200,7 +200,8 @@ 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, last_block['previous_hash'])
|
previous_hash = blockchain.hash(last_block)
|
||||||
|
block = blockchain.new_block(proof, previous_hash)
|
||||||
|
|
||||||
response = {
|
response = {
|
||||||
'message': "New Block Forged",
|
'message': "New Block Forged",
|
||||||
|
|
Loading…
Reference in New Issue