Implementing miner rewards and basic transactions in our Javascript based blockchain.
Mining rewards steadily introduce new coins into the system.
OOPS, I made a small mistake! In the minePendingTransactions() method, you have to pass the hash of the previous block when you're creating a new Block() instance. This was fixed on GitHub:
► Source code
Available on GitHub:
https://github.com/SavjeeTutorials/Sa...
►►► Buying Bitcoin or Ethereum
Get $10 for free when buying through my affiliate link (thanks!):
https://goo.gl/G9NQsu
🌍 Social
Twitter: / savjee
Facebook: / savjee
Blog: https://savjee.be
💌 Newsletter: http://newsletter.savjee.be (no more than once a month)
❤️ Become a Simply Explained member: / @simplyexplained