change to user last_block instead of self.chain[-1]
This commit is contained in:
parent
4010cf3273
commit
36d30167cd
|
@ -104,7 +104,7 @@ class Blockchain:
|
|||
'timestamp': time(),
|
||||
'transactions': self.current_transactions,
|
||||
'proof': proof,
|
||||
'previous_hash': previous_hash or self.hash(self.chain[-1]),
|
||||
'previous_hash': previous_hash or self.hash(last_block),
|
||||
}
|
||||
|
||||
# Reset the current list of transactions
|
||||
|
|
Loading…
Reference in New Issue