Savjee / SavjeeCoin

A simple blockchain in Javascript. For educational purposes only.
MIT License
1.74k stars 752 forks source link

[DELETE ME,PLEASE] isChainValid should check that previousHash matches the hash of its previous block? #46

Closed ilcasinistareloaded closed 3 years ago

ilcasinistareloaded commented 3 years ago

[DELETE ME,PLEASE] Hello again, maybe it is not an issue and I'm missing something, but shouldn't method isChainValid also check that for each block in the chain its Block.previousHash actually match the Block.hash of its previous block? Great work, again. [RESENT BY MISTAKE - SLOW CONNECTION, APOLOGIES]