Merge pull request #58 from shuheiktgw/change_to_use_last_block_method
Change to user last_block instead of self.chain[-1]
This commit is contained in:
commit
bc75c76f98
|
@ -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