4 ms·
Seems buggy. In a proper blockchain each successive block depends on the previous ones. Thus, breaking 'foo' by replacing it with 'blah' should have also broke
by dale_glass 4y ago
Seems buggy.
In a proper blockchain each successive block depends on the previous ones. Thus, breaking 'foo' by replacing it with 'blah' should have also broken 'qux'.
- teo_zero 4y agoYes. The mistake is to only hash the data of the previous block. You should hash the whole previous block, including prev.prev.