Closed ghost closed 2 years ago
Hi,
Did you write the code yourself or did you clone this repository? I can't replicate this issue with the code in this repo.
Hi,
I had the same issue. I found my isChainValid() method was slightly different from the one in this repo. Once I copied isChainValid() from this repo, the issue was fixed. Also make sure that in minePendingTransactions(), when you create the new Block, it adds a hash value to it.
Thanks for letting us know! Closing this issue for now.
After I tried to see if my block was valid but no matter what I did, it still said that it was not valid. I put my code below. Blockchain.js:
Main.js:
Keygenerator.js:
Hopefully, someone can help me.