Blockchain in Javascript – Mining Rewards & Transactions (Part 3)

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:

(Visited 23 times, 1 visits today)

You might be interested in


Your email address will not be published. Required fields are marked *