howCodeORG / Simple-Python-Blockchain

howCode's simple Python Blockchain with MINING!
141 stars 108 forks source link

Small fix in the Mine #2

Open konstantinullrich opened 5 years ago

konstantinullrich commented 5 years ago

First of all, I updated your Code Style to valid PEP8 Then I included the main function created

Then I updated the mining algorithm: You added the 'blockNo' and the 'previous_hash' in the add-function of the Blockchain class, which changes the hash of the block. Therefore the Proof of Work from the mine-function is invalid.