PreviousHash is always ''
AntonD69 opened this issue · comments
I am rewriting the code into c#, so I can see for myself how it works ... and it seems to me that previousHash will always be '' (empty) in your example.
I have not run the code, so i might be reading it wrong.
Line 56 of main.js has this :
savjeeCoin.addBlock(new Block(1, "20/07/2017", { amount: 4 }));
The previousHash should be passed in from my understanding.
BTW. Brilliant video and explenation!
The addBlock()
method sets the previous hash.
This happens here
Oops. You are 100% correct!
Thanks for the correction :)